i have incoming date in exactly like this string:
myDate= ' 2017-05-05T12:24:06+0000'
i am using FormattedDate from 'react-intl' to achieve my desired format
12:24, 5 May 2017
But with this code:
<FormattedDate
value={myDate}
day="numeric"
month="long"
year="numeric"
hour="numeric"
minute="numeric"/>
i am getting this :
May 5, 2017, 12:24
i must be doing something wrong. Or misunderstood docs. Can you advise me ?
I
Try to combine with FormattedTime of the same library
<FormattedTime value={myDate}/>, <FormattedDate
value={myDate}
day="numeric"
month="long"
year="numeric"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With