src/org/bs/utils/ConverUtils.java
(完整代码) 713Bpackage org.bs.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.sun.org.apache.regexp.internal.recompile;
public class ConverUtils {
public static Date StringTODate(String s){
Date date = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
try {
date = format.parse(s);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return date;
}
public static String DateToString(Date date){
String s = null;
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
s = format.format(date);
return s;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。