This language bar is your friend. Select your favorite languages!

Idiom #61 Get current date

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

#Edit dateEdit SummaryEditor
👁 Δ 35 2018-07-24, 13:44 Linked to idiom #99 [Format date YYYY-MM-DD] programming-idioms.org
👁 Δ 34 2018-01-08, 20:57 New JS implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 33 2018-01-08, 20:54 [JS] Okay but it's not a Date object programming-idioms.org
👁 Δ 32 2016-04-07, 09:30 New Lua implementation by user [Nepta]
👁 Δ 31 2016-04-05, 04:35 New Erlang implementation by user [elbrujohalcon]
👁 Δ 30 2016-02-18, 16:58 [JS]
👁 Δ 29 2016-02-17, 04:27 [JS]
👁 Δ 28 2016-02-17, 04:27 New JS implementation by user [mdciotti]
👁 Δ 27 2016-02-16, 18:39 New Csharp implementation by user [bdadams]
👁 Δ 26 2016-01-01, 01:37 [Java] Comment emphasize
👁 Δ 25 2016-01-01, 00:35 New Java implementation by user [lck]
👁 Δ 24 2015-11-30, 12:37
👁 Δ 23 2015-10-29, 14:05
👁 Δ 22 2015-09-04, 21:15
👁 Δ 21 2015-09-04, 13:13
👁 Δ 20 2015-09-03, 16:18
👁 Δ 19 2015-09-03, 16:18
👁 Δ 18 2015-08-26, 21:13
👁 Δ 17 2015-08-22, 23:13
👁 Δ 16 2015-08-22, 21:40
👁 Δ 15 2015-08-21, 23:29
👁 Δ 14 2015-08-20, 18:41
👁 Δ 13 2015-08-20, 18:29
👁 Δ 12 2015-08-20, 17:03
👁 Δ 11 2015-08-20, 17:02
👁 Δ 10 2015-08-20, 16:59
👁 Δ 9 2015-08-20, 11:26
👁 Δ 8 2015-08-20, 11:23
👁 Δ 7 2015-08-20, 11:22
👁 Δ 6 2015-08-19, 15:18
👁 Δ 5 2015-07-31, 20:39
👁 Δ 4 2015-05-06, 21:04
👁 Δ 3 2015-04-14, 21:23
👁 Δ 2 2015-04-14, 21:22
1 2015-04-14, 21:13