[启动自驾埋点转换到kotlin]
This commit is contained in:
yangyakun
2023-07-27 16:34:09 +08:00
parent e4823c9f46
commit ee5ea7616a
4 changed files with 146 additions and 153 deletions

View File

@@ -449,4 +449,14 @@ public class DateTimeUtils {
return strStart;
}
/**
* 获取 06月07 格式的日期
* @return
*/
public static String getTimeText(String dateFormat) {
SimpleDateFormat format = new SimpleDateFormat(dateFormat, Locale.US);
String strStart = format.format(new Date());
return strStart;
}
}