React-datepicker: dateFormat="DD/MM/YYYY" doesnt work

Created on 1 Feb 2019  路  3Comments  路  Source: Hacker0x01/react-datepicker

When i have on 2019-02-01:
className="form-control"
selected={new Date()}
dateFormat="DD/MM/YYYY"
/>

i get:
captura

Most helpful comment

use dd/MM/YYYY

All 3 comments

use dd/MM/YYYY

Wow!! Youre my savior today! Its works thx

use dd/MM/YYYY

I had to use "dd/MM/yyyy" or else the console would yell at me.

Was this page helpful?
0 / 5 - 0 ratings