Logo

Programming-Idioms

History of Idiom 61 > diff from v33 to v34

Edit summary for version 34 by programming-idioms.org:
New JS implementation by user [programming-idioms.org]

Version 33

2018-01-08, 20:54:56

Version 34

2018-01-08, 20:57:42

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Code
var d = new Date();
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date