On this podcast we talk about the Javascript Date Object, commonly used as new Date().  Here are some quick code examples for the Javascript Date Object:

 

 

const a = new Date(2016, 3, 1); // Fri Apr 01 2016 00:00:00 GMT-0400 (EDT)

const b = new Date(2015, 15, 1); // Fri Apr 01 2016 00:00:00 GMT-0400 (EDT)



const c = new Date(2016, 3, 1)

c.setDate(15) // Fri Apr 15 2016 00:00:00 GMT-0400 (EDT)



const d = new Date(2016, 3, 1)

+d // 1459483200000

 

Useful Links:

MDN Date 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Fullstack Javascript Podcast © 2017