Skip to content

Custom Date Format dd/mm/yyy

edited July 2013 in Questions

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 '/ ?

Comments

  • BenBen
    edited July 2013

    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 or dd-mm-yyyy, which is also accepted by PHP.

    Thanks.

    Best regards,
    Ben

This discussion has been closed.