I'm using react-intl formatDate to convert the date.I need to get the date in "MM-DD-YYYY" format where as I'm getting it in "DD-MM-YYYY" format.Is there any specific way to achieve this?
time value = {
MyTime.createdTimestamp
}
aria - label = {
formatDate(new Date(Number(MyTime.createdTimestamp)))
} > {
formatDate(new Date(Number(MyTime.createdTimestamp)), {
year: 'numeric',
month: 'numeric',
day: 'numeric'
})
}