Answers for "Declaring Javascript Dates"

0

Declaring Javascript Dates

/* Declaring a JavaScript date : 
In JavaScript Date objects are based on a time value
that is the number of milliseconds since 1 January,
1970 UTC. You can declare a date in the following ways :*/

new Date();
new Date(value);
new Date(dateString);
new Date(year, month[, day[, hour[, minutes[, seconds[, milliseconds]]]]]);
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language