How to convert the date
format ?
In my example, I now get the date
like this: 2020-09-01
and I want it to be 01/09/2020
.
How should I do it ?
<Text
style={{
fontSize: 20,
fontWeight: 'bold',
color: '#368fc7',
paddingLeft: 10,
}}
>
{date2.toISOString().slice(0, 10)}
</Text>