1.0.0 • Published 1 year ago
@james-bennett-295/date v1.0.0
Date utilities.
Typescript examples
import { JDate } from "@james-bennett-295/date";
const d = new JDate();
/*
* Year: %Y
* Short year: %y
* Month: %f
* Padded month: %m
* Month name: %B
* Short month name: %b
* Date: %e
* Padded date: %d
* Padded hours: %H
* Padded minutes: %M
* Padded seconds: %S
*/
console.log(`The date is ${d.formatDate("%d/%m/%Y")}`);
1.0.0
1 year ago