I’m trying to format a Date String in React Native.
ex: 2nd NOV.
My problem is I have to show as it mention in the image.
enter image description here
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
You could use MomentJS https://momentjs.com/ – it is a nice easy Library that lets you manipulate Dates and also Format it the way you want it. Check the "Display" Section in the Docs and there the "format" Function.
I guess in your case it would look something like this:
A js alternative :
it would display the day and month according to the locale you choose