[Skip to main content](#vessel-content)

#   Date of Birth has no validation

##

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

12 years 1 month ago [\#176878](#176878) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  *[Date of Birth has no validation](/forum/27-checkout/872579-date-of-birth-has-no-validation#176878 "-- url of the page with the problem -- : wodrocket.com -- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred. DateTime::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character  As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).  However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.  The validation must be in place to address this as the &quot;allow&quot; field is &quot;Only Past Dates&quot; but a inproper format is in fact not a past or future date.. it is not a date at all.  Any advice? Thanks.")* was created by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")*

-- url of the page with the problem -- : wodrocket.com
-- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character

As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).

However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.

The validation must be in place to address this as the "allow" field is "Only Past Dates" but a inproper format is in fact not a past or future date.. it is not a date at all.

Any advice? Thanks.
[ ![Screen&#95;Shot&#95;2014-10-25&#95;at&#95;7&#95;57&#95;02&#95;AM.png](/forum/attachment/20326) ](/forum/attachment/20326 "...7&#95;57&#95;02&#95;AM.png")

- [ ![Screen&#95;Shot&#95;2014-10-25&#95;at&#95;7&#95;57&#95;02&#95;AM.png](/forum/attachment/20326) ](/forum/attachment/20326 "...7&#95;57&#95;02&#95;AM.png") [ ](/forum/attachment/20326?download=1 "...7&#95;57&#95;02&#95;AM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjU3OS1kYXRlLW9mLWJpcnRoLWhhcy1uby12YWxpZGF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 1 month ago [\#176901](#176901) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Date of Birth has no validation](/forum/27-checkout/872579-date-of-birth-has-no-validation#176901 "-- url of the page with the problem -- : wodrocket.com -- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred. DateTime::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character  As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).  However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.  The validation must be in place to address this as the &quot;allow&quot; field is &quot;Only Past Dates&quot; but a inproper format is in fact not a past or future date.. it is not a date at all.  Any advice? Thanks.")*

Hi,

Please use the advanced date picker instead of the simple date picker.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjU3OS1kYXRlLW9mLWJpcnRoLWhhcy1uby12YWxpZGF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

12 years 1 month ago [\#176943](#176943) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[Date of Birth has no validation](/forum/27-checkout/872579-date-of-birth-has-no-validation#176943 "-- url of the page with the problem -- : wodrocket.com -- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred. DateTime::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character  As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).  However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.  The validation must be in place to address this as the &quot;allow&quot; field is &quot;Only Past Dates&quot; but a inproper format is in fact not a past or future date.. it is not a date at all.  Any advice? Thanks.")*

Ok. now it will not validate... it will simply ignore. Example:

1. go here: [ www.wodrocket.com/index.php?option=com\_h...ct&amp;task=show&amp;cid=535](http://www.wodrocket.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=535)

2. click "add to cart"

3. [ awesomescreenshot.com/0693q779dd](http://awesomescreenshot.com/0693q779dd)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjU3OS1kYXRlLW9mLWJpcnRoLWhhcy1uby12YWxpZGF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#177929](#177929) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Date of Birth has no validation](/forum/27-checkout/872579-date-of-birth-has-no-validation#177929 "-- url of the page with the problem -- : wodrocket.com -- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred. DateTime::&#95;&#95;construct() &#91;datetime.--construct&#93;: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character  As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).  However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.  The validation must be in place to address this as the &quot;allow&quot; field is &quot;Only Past Dates&quot; but a inproper format is in fact not a past or future date.. it is not a date at all.  Any advice? Thanks.")*

Hi,

Your field is not required ; so if the user put something non valid, it will empty the field and if the field is not required, it will continue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjU3OS1kYXRlLW9mLWJpcnRoLWhhcy1uby12YWxpZGF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
