Reputation: 1759
I need to change the format type of date from mm/dd/yyyy
to dd/mm/yyyy
, if not possible what other options i have? I don't think using jQuery in a React Project is a good choice.
<input type='date' />
The default value of this is mm/dd/yyyy
. This is stopping my work flow, as i can't skip it since the client insist to have the dd/mm/yyyy
format.
Any help is much appreciated.
Upvotes: 1
Views: 2691
Reputation: 30595
It is impossible to change the format for input type='date'
. This actually has nothing to do with React. It is the browser which sets the proper format according to the locale of your browser.
you can use custom react component to force this.
Just a quick search from google: React Date Picker
Upvotes: 1