|
@@ -170,9 +170,7 @@ public class DateUtil {
|
|
|
*
|
|
|
* @param date String
|
|
|
* @param strFormat String
|
|
|
- *
|
|
|
* @return FormatDate
|
|
|
- *
|
|
|
* @throws ParseException ParseException
|
|
|
*/
|
|
|
public static Date formatDate(Date date, String strFormat) {
|
|
@@ -209,7 +207,7 @@ public class DateUtil {
|
|
|
* @param format
|
|
|
* @return
|
|
|
*/
|
|
|
- public static String formatDate(Date date, String format) {
|
|
|
+ public static String formatDateStr(Date date, String format) {
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat(format);
|
|
|
dateFormat.setLenient(false);
|
|
|
return dateFormat.format(date);
|