Tutorial by Topics: datetime



The Date Time Picker allows a user to choose both a date (month/date/year) as well as a time of day (hours/minutes/seconds). A user can then output the date format and return format based on [PHP date()][1] acceptable methods. This is helpful for querying custom post types like events, tour dates, or even a single custom field. [1]: http://php.net/manual/en/function.date.php

The documentation for the DateTime::UniversalTime states:

"A 64-bit signed integer that represents a point in time as the number of 100-nanosecond intervals prior to or after midnight on January 1, 1601 (according to the Gregorian Calendar)."

This is the same as the Win32 FILETIMEstruct which you need to convert to a 100-nanosecond long long value and set it in the DateTime::UniversalTime field.


Page 1 of 1