Date Object
Results Display Area
- javascript:fGeneralInfo() - GMT Time
(UTC) vs PC's Local Time.
(toString(), toLocaleString(), toGMTString(), getTimezoneOffset())
- javascript:fCreateDateObject() - Create a Date Object.
- javascript:fDateParts() - Date parts
- javascript:fDateDisplayFormating() - Date display formating. Very useful info!!!
- Date Math - find the difference betwee two dates in number of days, hours, min, sec, milsec.(like VBScript & MSSQL's: DateDiff())
- javascript:fDateDiff_Days_oneline()
- one line of code for the equivalent of DateDiff(), etc...
- fDateDiff(<mode>,<dateStart>,<dateStop>) - a function I developed in
JavaScript as an equivalent for the SQL & VBScript DateDiff() function.
-
day - fDateDiff('day', new Date('11/13/2007'), new Date()) - returns the days
-
hour - fDateDiff('hour', new Date('11/13/2007'), new Date()) - returns the hours
-
min - fDateDiff('min', new Date('11/13/2007'), new Date()) - returns the mins
-
sec - fDateDiff('sec', new Date('11/13/2007'), new Date()) - returns the secs
-
milsec - fDateDiff('milsec', new Date('11/13/2007'), new Date()) - returns the milsecs