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

#   500 - DateTime::\_\_construct(): Failed

##

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 6 months ago -  13 years 6 months ago [\#101547](#101547) by [SG](/forum/user/12204-sg "View SG's Profile")  *[500 - DateTime::\_\_construct(): Failed](/forum/3-bug-report/81181-500-datetime-construct-failed#101547 "Hi,  Not sure if this really a bug or not.  I've got a custom order field from the type Date which is only shown when in the previous radio button field &quot;I would like to collect my order&quot; was selected. Date format: is %d/%m/%Y  When I choose &quot;I would like to collect my order&quot; AND pick a date AND also check the Terms of agreement then everything works. When I pick a date BUT don't check the agreement I get the following error.  So strange that it works when everything is choosen but as soon as you forget the agreement then you get the Date error.  While I was typing this post I got an idea and tried the following: I changed the date format back to %Y-%m-%d. And now I get the &quot;normal&quot; error message that I need to accept the agreement.  Any idea how to resolve this? In belgium we use dd/mm/yyyy format that's why I tried d%/m%/Y%  EDIT: I just tried with %d-%m-%y and this seem to work. Still like to know what the problem is with the slashes? can you reproduce the problem?  Thanks")* was created by *[SG](/forum/user/12204-sg "View SG's Profile")*

Hi,

Not sure if this really a bug or not.

I've got a custom **order** field from the type **Date** which is only shown when in the previous radio button field "I would like to collect my order" was selected.
**Date format:** is %d/%m/%Y

When I choose **"I would like to collect my order"** AND **pick a date** AND **also check the Terms of agreement** then **everything works**.
When I **pick a date** **BUT don't check the agreement** I get the following error.

> **500 - DateTime::\_\_construct(): Failed to parse time string (15/05/2013) at position 0 (1): Unexpected character**

So strange that it works when everything is choosen but as soon as you forget the agreement then you get the Date error.

While I was typing this post I got an idea and tried the following:
I changed the date format back to %Y-%m-%d.
And now I get the "normal" error message that I need to accept the agreement.

Any idea how to resolve this?
In belgium we use dd/mm/yyyy format that's why I tried d%/m%/Y%

EDIT: I just tried with %d-%m-%y and this seem to work. Still like to know what the problem is with the slashes? can you reproduce the problem?

Thanks

Last edit: 13 years 6 months ago by [SG](/forum/user/12204-sg "View SG's Profile"). Reason: see Edit note

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTE4MS01MDAtZGF0ZXRpbWUtY29uc3RydWN0LWZhaWxlZD90bXBsPW1hcmtkb3du) 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: 86560
- Thank you received: 14307
-
-

13 years 6 months ago [\#101622](#101622) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[500 - DateTime::\_\_construct(): Failed](/forum/3-bug-report/81181-500-datetime-construct-failed#101622 "Hi,  Not sure if this really a bug or not.  I've got a custom order field from the type Date which is only shown when in the previous radio button field &quot;I would like to collect my order&quot; was selected. Date format: is %d/%m/%Y  When I choose &quot;I would like to collect my order&quot; AND pick a date AND also check the Terms of agreement then everything works. When I pick a date BUT don't check the agreement I get the following error.  So strange that it works when everything is choosen but as soon as you forget the agreement then you get the Date error.  While I was typing this post I got an idea and tried the following: I changed the date format back to %Y-%m-%d. And now I get the &quot;normal&quot; error message that I need to accept the agreement.  Any idea how to resolve this? In belgium we use dd/mm/yyyy format that's why I tried d%/m%/Y%  EDIT: I just tried with %d-%m-%y and this seem to work. Still like to know what the problem is with the slashes? can you reproduce the problem?  Thanks")*

Hi,

We don't know of such problem on our end and couldn't reproduce with %d/%m/%Y

I can see that you talked about d%/m%/Y% in your message. That would indeed produce such error since the % and the letters are reversed. So maybe it comes from that ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTE4MS01MDAtZGF0ZXRpbWUtY29uc3RydWN0LWZhaWxlZD90bXBsPW1hcmtkb3du) 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.045 seconds

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