时间处理方法

public class Time {web //String转Date类型 public static Date strToDate(String s){ DateFormat df=new SimpleDateFormat("yyyy-MM-dd");//设置日期格式 try{ Date d=df.parse(s); //将字符串解析为da
相关文章
相关标签/搜索