Ajax Register - Date Field problem

8 years 11 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?

Please Log in or Create an account to join the conversation.

8 years 11 months ago #7501 by Saka
You can't have date in format DD/MM/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.

8 years 11 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...

Please Log in or Create an account to join the conversation.

8 years 11 months ago #7504 by Saka
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.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

8 years 11 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.

8 years 11 months ago #7507 by cozinhanet

...you can make a option for DD/MM/YYYY beyond dd-mm-yyyy or mm-dd-yyyy in plugin settings??

or give me instructions to do so?

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch