var myDate new Date();// new Date() 参数说明,使用举例
// new Date(yyyy,mth,dd,hh,mm,ss),这种方式,必须传递整型
month:用英文 表示月份名称,从January到December ,缩写也行(Jan....Dec)
…
一般常用格式化类DateFormat和SimpleDateFormat的format(Date time)方法进行格式化日期。 一. 介绍java.text.SimpleDateFormat类 public class SimpleDateFormat extends DateFormat SimpleDateFormat是一个以与语言环境有关的方式来格式化和解析日期的具体类。它允许进行格式…