datetojson
v1.0.1
Published
Receive time and dateformat return json with data
Downloads
4
Maintainers
Readme
DateToJson
A small library that return date in json format
Usage
var dateformat = require('datetojson');
var date = datetoformat("ddd, DD MMM YYYY HH:mm:ss ZZ", "Sun, 04 Sep 2016 21:00:00 +0100");
date.day - day of month
date.month - month of year
date.year - year
date.hour - hour
date.minute - minute
date.second - second
Tests
npm test