以下是jQuery 的Datepicker日期時間API ,非常好用,
以下是參數的定義,本文只是給自己及其他已經會使用的人的線上參考,
不會使用的人請自行搜尋網路上一些教學哦....
用指定的格式來格式化日期為字符串值。
該格式可以組合如下:
d - day of month (no leading zero)
dd - day of month (two digit)
o - day of the year (no leading zeros)
oo - day of the year (three digit)
D - day name short
DD - day name long
m - month of year (no leading zero)
mm - month of year (two digit)
M - month name short
MM - month name long
y - year (two digit)
yy - year (four digit)
@ - Unix timestamp (ms since 01/01/1970)
! - Windows ticks (100ns since 01/01/0001)
'...' - literal text
'' - single quote
也有一些預定義的標準日期格式來自 $.datepicker:
ATOM - 'yy-mm-dd' (Same as RFC 3339/ISO 8601)COOKIE - 'D, dd M yy'ISO_8601 - 'yy-mm-dd'RFC_822 - 'D, d M y' (See RFC 822)RFC_850 - 'DD, dd-M-y' (See RFC 850)RFC_1036 - 'D, d M y' (See RFC 1036)RFC_1123 - 'D, d M yy' (See RFC 1123)RFC_2822 - 'D, d M yy' (See RFC 2822)RSS - 'D, d M y' (Same as RFC 822)TICKS - '!'TIMESTAMP - '@'W3C - 'yy-mm-dd' (Same as ISO 8601)參考網站:
http://docs.jquery.com/UI/Datepicker
http://marcgrabanski.com/code/ui-datepicker/
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/
http://keith-wood.name/datepick.html