simpledateformat
simpledateformat列表
-
Java如何格式化日期
Import java.text. SimpleDateFormat;SimpleDateFormat sdf=new SimpleDateFormat(“yyyy-MM-dd hh:mm:ss”);Date dat=new Date();//把日期转化为字符串String str... [simpledateformat]
Import java.text. SimpleDateFormat;SimpleDateFormat sdf=new SimpleDateFormat(“yyyy-MM-dd hh:mm:ss”);Date dat=new Date();//把日期转化为字符串String str... [simpledateformat]