Returning date prior to 1970
-
Firstly, THANK YOU for this amazing plugin. You have saved me literally hours of time.
However, I’m having trouble returning dates before 1970 using the helper functions:
$startdateymd = date('Y-m-d', get_scpt_formatted_meta( 'event-start-date' ));
This returns the date of 1549/07/09 as 1970/01/01. Is this because of the way the timestamp is being generated by get_scpt_formatted_meta? Is there a workaround?
I also have a select which is returning the ID instead of the value:
$startdatetype = get_scpt_formatted_meta( 'event-start-date-type' );
Is there a way of returning the value instead of the ID?
Thanks again.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Returning date prior to 1970’ is closed to new replies.