Advertisement
bolo17

JavaScript Date Reference

Mar 12th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Date Reference !!!
  2. download link file:https://cuts-url.com/uiIE
  3. Date Object
  4. The Date object is used to work with dates and times.
  5.  
  6. Date objects are created with new Date().
  7.  
  8. There are four ways of instantiating a date:
  9.  
  10. var d = new Date();
  11. var d = new Date(milliseconds);
  12. var d = new Date(dateString);
  13. var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement