Socket
Book a DemoInstallSign in
Socket

english-dates

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

english-dates

A small utility for getting english days and months

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Get english weekdays and months from a Date

NPM Version NPM Downloads Build Status

A very small utility for getting english weekday and month names from a date instance. This module uses the Intl api when present, but falls back to simple arrays of the english words. Once this kind of backward compatibility isn't needed it will be removed.

$ npm install --save english-dates
var englishDate = require('english-dates');

var myGrandpasBirthdate = new Date(1913, 0, 1);

englishDate.day(myGrandpasBirthdate); // Wednesday
englishDate.month(myGrandpasBirthdate); // January

Keywords

dates

FAQs

Package last updated on 17 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts