G'day mate! Welcome to the most fair dinkum date formatting library this side of the Southern Hemisphere!
Ever needed to format your dates in proper Australian style but got lost in the outback of date formatting? No worries! This little beauty's got you covered with all the date formats you'll ever need in the land down under.
- β Standard Australian format (23/01/2025)
- β Casual format for your arvo catch-ups (3/1/2025)
- β Fancy format for your formal occasions (Thursday, 23 January 2025)
- β Short and sweet format (23 Jan 2025)
- β Tech-savvy ISO format (2025-01-23)
yeah, nah, just copy it from here.
if you fancy, call the file aussie-dates.js
then....
const { formatAustralianDate } = require('aussie-dates');
const date = new Date(2025, 0, 23);
console.log(formatAustralianDate(date)); // Outputs: 23/01/2025
Here's what you can do with this ripper of a library:
const date = new Date(2025, 0, 23);
formatAustralianDate(date) // -> "23/01/2025"
formatInformalDate(date) // -> "23/1/2025"
formatShortReadableDate(date) // -> "23 Jan 2025"
formatLongDate(date) // -> "Thursday, 23 January 2025"
formatISODate(date) // -> "2025-01-23"
Found a bug? Got a suggestion? Don't be a galah - raise an issue or send us a pull request! We're friendly as, mate!
MIT License - Feel free to use it in your projects, no dramas!
Remember mate, Australia's got more time zones than a kangaroo's got hops:
- AEST (Australian Eastern Standard Time)
- ACST (Australian Central Standard Time)
- AWST (Australian Western Standard Time)
Plus we've got that daylight savings thing in some states (looking at you, Victoria)!
Made with β€οΈ by developers who know their dates from their dingoes!
Remember: Time's like a boomerang in Australia - it always comes back around! πͺ