Good day
I am trying to submit a date from a form to a custom post type that has a post date field. Unfortunately the date always gets posted as 1/1/1970. I am using the WP Types plugin for the custom posts. When submitting the date through the dashboard everything seems fine, but as soon as I use a from to submit the date it gets posted as 1/1/1970.
I have read somewhere on the forums that WP Types uses a Unix time stamp and that one has to write a function to convert the date that was entered in the form to a Unix time stamp.
I have tried different variations of actions and filters to write this function but just cannot get it right. Can someone please be so kind as to assist me in this matter?