|
@@ -72,7 +72,7 @@ public class CommonHelperUtils {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 返回日期字符格式
|
|
|
* @param date
|
|
|
* @param pattern
|
|
|
* @return
|
|
@@ -82,6 +82,21 @@ public class CommonHelperUtils {
|
|
|
return sdf.format(date);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param dateString
|
|
|
+ * @param pattern
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static Date getDateStringFormat(String dateString, String pattern){
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
|
|
+ try {
|
|
|
+ return sdf.parse(dateString);
|
|
|
+ } catch (ParseException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 格式化BigDecimal对象
|
|
|
* @param objValue
|