forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
448 B
19 lines
448 B
6 years ago
|
package com.fanruan.api.util;
|
||
|
|
||
|
import com.fr.general.DateUtils;
|
||
|
|
||
|
import java.util.Date;
|
||
|
|
||
|
public class DateKit {
|
||
|
/**
|
||
|
* 将字符串转化为日期
|
||
|
*
|
||
|
* @param str 字符串
|
||
|
* @param returnNull 转化失败的时候是否返回null
|
||
|
* @return 将字符串转化为相应的日期值
|
||
|
*/
|
||
|
public static Date string2Date(String str, boolean returnNull) {
|
||
|
return DateUtils.string2Date(str, returnNull);
|
||
|
}
|
||
|
}
|