Advertisement
bolo17

JavaScript Date Reference

Jun 7th, 2020
2,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. get link :http://exe.io/rcwTgB9
  14. link:http://locinealy.com/2czx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement