package com.hxsmart.intelligentizepos.util;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Developer : xiongwenwei@aliyun.com
* Create Time :2016-5-20 14:07:05
* Function:获取日期、时间
*/
public class TimeUtil {
public static String getDate() {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
Date date = new Date();
return simpleDateFormat.format(date);
}
public static String getTime() {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HHmmss");
Date date = new Date();
return simpleDateFormat.format(date);
}
}
工具类:TimeUtil
最新推荐文章于 2021-07-20 19:58:49 发布