I am new to React & Format.js. I need to do a small task which I am not able to do so. Please help me to convert date to date and time in my react js app format.js they used as a component it is written like this.
I also followed this article but not able to understand
<FormattedDate value={new Date(data.situDate)} year="numeric" month="short" day="2-digit" />
and inside the data it is like this response
"situDate":"2021-12-07T15:56:47.661+00:00"
I needed to show like in this format
27 oct. 2020 16:24:22