Advertisement
sissou123

Untitled

Jul 13th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. JavaScript Date Reference
  2. Date Object
  3. The Date object is used to work with dates and times.
  4.  
  5. Date objects are created with new Date().
  6.  
  7. There are four ways of instantiating a date:
  8.  
  9. var d = new Date();
  10. var d = new Date(milliseconds);
  11. var d = new Date(dateString);
  12. var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);
  13. link:http://locinealy.com/2czx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement