A JavaScript/TypeScript date formatter that outputs dates and times in the Australian format (dd/mm/yyyy, 12-hour clock with AM/PM, timezone abbreviations like AEDT). Current version 0.0.3. It works with Node's default locale (en-US) and supports any timezone via the Intl API, though US timezones may not display correctly due to offset limitations. The library provides Canadian-friendly formatting for date strings and ISO variants. It is lightweight and has no external dependencies.
npm install aussie-date-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a DateFormatter with a date and timezone, then format using various methods.
Use Australian or other non-US time zones; otherwise, consider an alternative library.
Use native Date or a library like date-fns for date manipulation.
Always verify the output format; use toIsoDate() for unambiguous ISO format.
Use toTime('24') for 24-hour format.Use const { DateFormatter } = require('aussie-date-formatter');Ensure date argument is a valid Date object.
Use a supported time zone like 'Australia/Sydney' or 'Europe/London'.
No dependency data recorded yet.