Showdate函数显示各种英文日期

发表于:2007-07-01来源:作者:点击数: 标签:
用法: Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] ) Date:- Java script date object in the form new Date(), new Date(1982,06,30). Day:- Day string in the form "dddd" or "dd

用法:

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

原文转自:http://www.ltesting.net