Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

datetojson

evill894ISC1.0.1

Receive time and dateformat return json with data

date, format, json, parse, time, dateformat

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