Date Object
Date object is used to manipulate date and time.
There are four different constructors that can be used to instantiate a Date.
To return todays date and Time you can use the first Line of code.
The code that has been used to create and show date and time will be shown below:
Hope this will help you understand the basics of Date objects.
Date object is used to manipulate date and time.
There are four different constructors that can be used to instantiate a Date.
var d = new Date(); var d = new Date(milliseconds); var d = new Date(dateString); var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);
To return todays date and Time you can use the first Line of code.
The code that has been used to create and show date and time will be shown below:
// myprogrammingzone code // myprogrammingzone code
Hope this will help you understand the basics of Date objects.
No comments:
Post a Comment