Based on Input box: (initiate on focus)
With different format:
Based on anchor: calendar
format() format Enter a format string, then click the format link. The current date will be displayed in that format.
Format Tokens: d - day of month (not padded) h - hour, 12 hour clock (not padded) dd - day of month (zero padded) hh - hour, 12 hour clock (zero padded) ddd - day name, abbreviated H - hour, 24 hour clock (not padded) dddd - day name, full HH - hour, 24 hour clock (zero padded) m - month number (not padded) i - minutes (not padded) mm - month number (zero padded) ii - minutes (zero padded) mmm - month name, abbreviated s - seconds (not padded) mmmm - month name, full ss - seconds (zero padded) y - two digit year (not padded) a - am / pm (lowercase) yy - two digit year (zero padded) A - AM / PM (uppercase) yyyy - four digit year O - timze zone offset from GMT. (that is a letter OH, not number zero) j - ordinal day/julian date jjj - ordinal day/julian date (same as "j") prebuilt formats short - "m/d/yy" medium - "mmm d yyyy" long - "mmmm d yyyy" shorttime - "m/d/yy HH:ii" mediumtime - "mmm d yyyy HH:ii" longtime - "mmmm d yyyy hh:ii:ss A O" iso8610 - "yyyy-mm-ddTHH:ii:ss O" yyyymmdd - "yyyy-mm-dd"
isDate() check Enter something in the text box. Click the check link to see if it's a date or not. This simple routine is checking a list of known formats. The isDate() method can take a formatstring parameter to explicitly check an arbitrary format.
parseDate() parse Enter a date in the text box. Then click the parse link to see if the date object can be found. This simple routine is checking a list of known formats. The parseDate() method can take a formatstring parameter to explicitly parse an arbitrary format.
dateAdd() ms - millisecondss - secondsi - minutes h - hoursd - daysw - weeks y - year show me Select a unit from the list. Enter a qantity. Click the show me button to see the resulting date (using the current date as the starting point).
dateDiff() ms - millisecondss - secondsi - minutes h - hoursd - daysw - weeks y - year show me Select a unit from the list. Enter two dates. Click the show me button to see the difference between the dates in the selected unit.