1.1.0 • Published 1 year ago

@apolitical/common-helpers-dates v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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