Easydate
get date and/or time by pattern.
A simple date and time util that returns the date according to a pattern, easydate takes two arguments, first one being a pattern string
and second one being an config object.
Pattern Options:
YFull year (number - e.g.2012)yYear (number - e.g.12)MMonth (number - e.g.11)dDay (number - e.g.28)hHour (number - e.g.02)mMinute (number - e.g.01)sSecond (number - e.g.33)lMillisecond (number - e.g.001)zTimezone (string - e.g.UTC,UTC+1,UTC-11)xDST (string - either'DST'or'')
Config options:
1 2 3 4 5 | |
Install it: npm install --save easydate
Sample usage:
1 2 3 4 5 6 7 8 9 10 | |
GIF FTW!

Thanks to Rory Bradford for this handy util.