Ajax Register - Date Field problem
- cozinhanet
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
9 years 6 months ago #7500
by cozinhanet
On
cozinhanet.sitesw8digital.com.br/cadastro-pessoa-fisica
I have set a date field (Data de Nascimento) and when a set a date like "16/07/1975" it pass on ajax validation but I got a severe page 500 error:
"Erro: 500
DateTime::__construct(): Failed to parse time string (16/07/1975) at position 0 (1): Unexpected character"
Whats happen?
"Erro: 500
DateTime::__construct(): Failed to parse time string (16/07/1975) at position 0 (1): Unexpected character"
Whats happen?
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
9 years 6 months ago #7501
by Saka
Emir Sakic
www.sakic.net
You can't have date in format DD/MM/YYYY
It has to be in MM/DD/YYYY
It has to be in MM/DD/YYYY
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- cozinhanet
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
9 years 6 months ago #7503
by cozinhanet
It can't make that way.
On my country this date format (MM/DD/YYYY) is confused, and on plugin setting I have a option to set DD/MM/YYYY.
I atach the screen of this option...
On my country this date format (MM/DD/YYYY) is confused, and on plugin setting I have a option to set DD/MM/YYYY.
I atach the screen of this option...
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
9 years 6 months ago #7504
by Saka
Emir Sakic
www.sakic.net
That option is DD-MM-YYYY, so you can't enter it like DD/MM/YYYY
Enter it as 16-07-1975 and it will work.
Enter it as 16-07-1975 and it will work.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- cozinhanet
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
9 years 6 months ago #7505
by cozinhanet
Fun... and you can make a option for DD/MM/YYYY beyond dd-mm-yyyy or mm-dd-yyyy in plugin settings??
Please Log in or Create an account to join the conversation.
- cozinhanet
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
9 years 5 months ago #7507
by cozinhanet
or give me instructions to do so?...you can make a option for DD/MM/YYYY beyond dd-mm-yyyy or mm-dd-yyyy in plugin settings??
Please Log in or Create an account to join the conversation.