simple-date-lib
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

simple-string-lib

npm npm

Install

npm install --save simple-string-lib

or

yarn add simple-string-lib

Usage

import { D } from 'simple-date-lib';

const date = new D('2019-01-01 00:00:00');

d.format('Y-M-d'); // 2019-January-1
d.year(); // 2019
d.yr(); // 19
d.month(); // January
d.mon() // Jan
d.day(); // Tuesday
d.dy() // Tue
d.date(); // 1
d.when('September 6, 2022') // 1 month ago

Readme

Keywords

none

Package Sidebar

Install

npm i simple-date-lib

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

39.8 kB

Total Files

15

Last publish

Collaborators

  • dailyhelix