mikevisions
Member
Posted 4 months ago #
Hi,
I want to save a field of expiry date to use to test against the current date to not display the post if the expiry date has passed.From my understanding I need to store the date as UNIX timestamp format. Is this possible?
Thanks for your help,
Mike
http://wordpress.org/extend/plugins/custom-content-type-manager/
No, the JS library for date fields currently only stores dates (no time included due to blocking by WP police -- see http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=308). I'd recommend you use the MySQL format: YYYY-MM-DD and do date comparisons on that value.
MODX, for example, offers "unpublish dates" by default in the core, fyi.