I'm trying to convert the date today to a specific format
Hoping to achieve the format (dd mm yyyy) and the month is the shortened version in string format:
03 Apr 2022
I tried to do the following:
const dateToday = new Date()
const options = {
year: 'numeric', month: 'short', day: 'numeric'
}
console.log(dateToday.toLocaleDateString('en-US', options))
The output I get is
Apr 3, 2022
Any recommendations I can take?