I've formatted my date like below, but I would like the weekday
to go after the DD/MM/YYYY
. Is this possible?
Current output: Friday, 16/06/2023, 12:00
Desired output: 16/06/2023, Friday, 12:00
const options = {
weekday: 'long',
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
};
const dt = new Date('2023-06-16T12:00:00Z').toLocaleDateString('en-GB', options)
console.log(dt)