When using javascript's built in Intl.DateTimeFormat to format the date, if you provide the format {weekday : 'short', day 'numeric'}
it will re-arrange the two and always give day followed by weekday.
For reference:
console.log(new Intl.DateTimeFormat('en-US', {
weekday: 'short',
day: 'numeric'
}).format(new Date));
I would expect Fri 3
but instead I receive 3 Fri
Am I using this incorrectly or is this a bug?
The immediate workaround I've tried is to format for just weekday, then just day, then append the two which works but this isn't ideal for my project.