cjx2240 Posted September 9, 2020 Share Posted September 9, 2020 Got a bit of a weird one. I've got a date field, I've added a date in two different pages using the calendar selector. It has saved, and stored in the same format in the database. I can echo out the date no problem for both dates, it exists. However, if I use strtotime() (or wireDate()) on this date, one of them works, and one of them does not. var_dump($page->custom_date); var_dump(strtotime($page->custom_date)); 1: 2: Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 9, 2020 Share Posted September 9, 2020 Using / as dividers signifies an American date format of MM/DD/YYYY, which makes only the latter invalid. 1 1 Link to comment Share on other sites More sharing options...
cjx2240 Posted September 11, 2020 Author Share Posted September 11, 2020 Well that's a new one for me! Thanks for explaining. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now