Code has been added to clipboard!

4 Common JavaScript Date Formats

Example
new Date()
new Date(milliseconds)
new Date(dateString)  
new Date(year, month, day, hours, minutes, seconds, milliseconds)