2.0.1 • Published 10 months ago

@boatnet/bn-util v2.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
10 months ago

bn-util

  • Basic boatnet function wrappers, currently just using moment for parsing ISO 8601:

shortFormatDate(dateStr: string): string

formatDate(dateStr: string): string

const testShort = util.shortFormatDate('2019-01-01T00:00:00');
// "01/01/19 00:00"
const testFormat = util.formatDate('2019-01-01T00:00:00');
// "January 1, 2019 12:00 AM"