what-is-the-weekday

1.0.1 • Public • Published

What is the weekday?

The idea with this package is to return to you the weekday from a JavaScript Date object.

Installation

This library is available as a npm package. You can install:

npm install what-is-the-weekday --save
# or using yarn
yarn add what-is-the-weekday

Usage

const whatIsTheWeekday = require('what-is-the-weekday');

const date = new Date('2018-01-01');

console.log(whatIsTheWeekday({ date }));
// => Monday

This package is also available in Brazilian Portuguese!

const whatIsTheWeekday = require('what-is-the-weekday');

console.log(whatIsTheWeekday({ date: new Date('2018-01-01'), lang: 'pt-br' }));
// => Segunda-Feira

Package Sidebar

Install

npm i what-is-the-weekday

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

5.59 kB

Total Files

7

Last publish

Collaborators

  • ologbonowiwi