Insert the current date & time.
apm install date
or find it in the Packages tab under settings.
Select a command from Date & Time
in the Command Palette.
You can also bind your keys to date:date
, date:time
, and date:datetime
.
Formatting is done using moment, see the moment format doc for all options.
To make use of the I18n support available in moment, set the "locale" setting.
All outputs are for 11:39:23.584 AM MDT August 21, 2017
Format | Output |
---|---|
D/M/YYYY |
21/8/2017 |
dddd MMMM D, YYYY |
Monday August 21, 2017 |
H:mm A |
11:39 AM |
X |
1503337163 |
YYYY-MM-DD |
2017-08-21 |
THH:mm:ssZ |
T11:39:23-06:00 |