Showdate函数显示各种英文日期

时间:2010-03-29 19:12:42  来源:第二电脑网  作者:第二电脑网

  第二电脑网导读:the form "dddd" or "ddd". Month:- Month string in the form "mmmm", "mmm", "mm". Date:- Date string in the form "dddd", "ddd", "dd", "d". Year:- Year string in the form "yyyy", "yy".例子      &...
  正文:

用法:

Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )

Date:- JavaScript date object in the form new Date(), new Date(1982,06,30).

Day:- Day string in the form "dddd" or "ddd".

Month:- Month string in the form "mmmm", "mmm", "mm".

Date:- Date string in the form "dddd", "ddd", "dd", "d".

Year:- Year string in the form "yyyy", "yy".

例子                                                           效果
Showdate(new Date(), 'dddd', 'mmm', 'dd', 'yyyy', '-')            Tuesday, May-24-2005 
Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.')                  2405.24.2005 
Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' ') Tuesday, Dec 25 01
 

Showdate函数显示各种英文日期》由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Programming/JavaScript/13396.html


关键字:

关于《Showdate函数显示各种英文日期》文章的评论

站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td