Commit 9c45ee3d by zhengxj

finish 新增获取当前日期方法 on 20190129 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17165 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 627537a7
......@@ -36,13 +36,13 @@ public class DateUtil {
* @return
*/
public static Date getCurrentDate() {
return parseDate(formatDate(getCurrentDate()));
return parseDateYmd(formatDate(getCurrentTime()));
}
public static void main(String args[]){
System.out.println(parseDateYmd(formatDateYmd(getCurrentDate())));
System.out.println(getCurrentDate());
System.out.println(parseDateYmd(getTomorrow()));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!