@apolitical/common-helpers-dates

Node.js module to format dates

Usage no npm install needed!

<script type="module">
  import apoliticalCommonHelpersDates from 'https://cdn.skypack.dev/@apolitical/common-helpers-dates';
</script>

README

Common Helpers- Dates

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

Current function

  • getMonth
    • Takes a date string and returns the month referenced in that date string. Month is returned in short format.
  • getNumericDay
    • Takes a date string and returns the day referenced in that date string.