I am currently using moment.js for displaying dates in my application.
The date format is determined based on the locale stored in the variable clientLanguage
.
I have tried various approaches, including the following:
moment(myISODate).locale(clientLanguage).format('ll');
However, I require a different format and have been unable to achieve the desired output with formats like:
WED 18 NOV 20:05
and WED 18 NOV
Is there a way to customize the format using moment.js?
[UPDATE] An important detail that I overlooked: the localized format should be adhered to. For instance, if the English date format is WED OCT 19, then the Italian format should be MER 19 OTT (with "19" in a different position).
[UPDATE] It seems that the person who downvoted did not provide a solution.