Enter a date, or select a date form the pop up calender, to see how the fuctions return the values of the date entered. Tab or click out of the "Test Date" field to activate functions.
|
Test Date (mm/dd/yyyy)
|
Function Name |
Returns |
Description |
weekNumber() |
|
Week number in the year (ie., 27) |
daysInMonth() |
|
Total days in a month (ie., 31) |
daysInQuarter() |
|
Total days in a quarter (ie., 92) |
dayOfYear() |
|
Total days elasped in a year (ie., 182) |
daysLeftInYear() |
|
Total days remaining is a year (ie., 183) |
daysInYear() |
|
Total days is a year (ie., 365) |
isLeapYear() |
|
1 or 0 |
Date Format |
|
Time Zone |
getTimeZone() |
Gets time zone data based on user's system time zone. Note: To change time zones. Open your date and time settings and change the time zone then reload. |
|
Miltary Time Zone |
getTimeZoneMiltary() |
Gets Miltary time zone data based on user's system time zone. Note: To change time zones. Open your date and time settings and change the time zone then reload. |
|
Julian Date |
julianDate() |
|
Julian Date (ie., 2454267.8982) |
Date Differance |
|
Date Calculation |
|
Existing Date Functions |
getYear() |
|
Number of years since 1900 |
getFullYear() |
|
4 digit year (ie., 2003) |
getMonth() |
|
Month within year (0-11)* |
getDate() |
|
Date within month (1-31) |
getDay() |
|
Day within week (0-6)* |
getHours() |
|
Hour within day (0-23) |
getMinutes() |
|
Minutes within hour (0-59) |
getSeconds() |
|
Seconds within minute (0-59) |
getTime() |
|
Number of milliseconds since 1/1/1970 00:00:00 |
getTimezoneOffset() |
|
Minutes offset from GMT/UTC |
toGMTString() |
|
Date string in universal format |
toLocaleString() |
|
Date string in local system's format |
* 0 index Click here to see dateTime.js file. |