I need to display the date using different separators using react-intl. So far I have this
const date = new Date("2016-08-12T16:59:02.013+02:00");
...
return() {
render(
<FormattedDate
value={date}
year='numeric'
month='numeric'
day='numeric'
/>
)
}
This renders the date 8/12/2016, but I need to show it like this 8-12-2016. How can this be done with FormattedDate? Or should I use a different approach?