Custom Date Format dd/mm/yyy
Hello,
I have a custom Date of Birth field. I would like users to enter in the form, in this format. dd/mm/yyyy.
This does not work and gives the wrong dob in the backend.
dd-mm-yyyy does work. Along with many other formats.
Is there an easy way to allow the '/ ?
This discussion has been closed.
Comments
Hi @chrisando,
There is only a number of date formats accepted by PHP. Apparently,
dd/mm/yyyy
is not one of them. On the other hand,yyyy/mm/dd
is accepted by PHP. Either use that ordd-mm-yyyy
, which is also accepted by PHP.Thanks.
Best regards,
Ben