@apolitical/common-helpers-dates

1.1.0 • Public • Published

Common Helpers- Dates

Node.js module to expose functionality to format dates for use in our frontend projects

Current function

  • getMonth
    • Takes a date and returns the month as a string in short format
  • getNumericDay
    • Takes a date and returns the numeric day as a string
  • getShortDate
    • Takes a date and returns the date as a string in 1 Jan format
  • getDateWithYear
    • Takes a date and returns the date as a string in 1 Jan 2022 format
  • getLongDate
    • Takes a date and returns the date as a string in Saturday, 1 Jan 2022 format

Package Sidebar

Install

npm i @apolitical/common-helpers-dates

Weekly Downloads

37

Version

1.1.0

License

MIT

Unpacked Size

3.2 kB

Total Files

6

Last publish

Collaborators

  • npm-apolitical-styleguide