• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Dealing with Dates and Times... > Arguments Used with the Date Object

Arguments Used with the Date Object

Before getting to the nitty-gritty of the Date object and its associated methods, let's take a second to run through the various arguments that JavaScript requires for many Date-related features. This will save me from repeating these arguments tediously later on. Table 13.1 has the details.

Table 13.1. Arguments Associated with the Date Object
ArgumentWhat It RepresentsPossible Values
Date_ObjectA variable nameA Date object
yyyyThe yearFour-digit integers
yyThe yearTwo-digit integers
MonthThe monthThe full month name from "January" to "December"
mthThe monthIntegers from 0 (January) to 11 (December)
ddThe day of the monthIntegers from 1 to 31
hhThe hour of the dayIntegers from 0 (midnight) to 23 (11:00 PM)
mmThe minute of the hourIntegers from 0 to 59
ssThe second of the minuteIntegers from 0 to 59
msThe milliseconds of theIntegers from 0 to 999 second



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint