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

The Date Object

Date objects store dates and provide many methods to extract the hours, minutes, and so on parts of dates. There are a number of different ways to create Date objects, such as the following:

var date1 = new Date() 
var date1 = new Date(dateVal) 
var date1 = new Date(year, month, date[, hours[, minutes[, seconds[, ms]]]]) 

					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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