星期五, 5月 07, 2010

[Javascript] Date Function

剛好專案需要一些javascrip時間格式的判斷,上了Google大神找到這個資源。

Date Function Description:
These functions are very useful when dealing with any type of date fields.
They use the same format strings as the java.text.SimpleDateFormat class, with a few minor exceptions.
Functions include:
  • isDate() - Check if a date is valid
  • compareDates() - See if one date is greater than another
  • formatDate() - Output a Date() object in any format
  • getDateFromFormat() - Parse a date string and return time in ms representing date object

Reference : Date Functions

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails