Advertisement
bolo17

JavaScript Date Reference

Jun 24th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 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
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. get link:https://www.clictune.com/8gWg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement