Custom Content Type Manager
saved format of the date field (2 posts)

  1. mikevisions
    Posted 3 years ago #

    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,


  2. fireproofsocks
    Plugin Contributor

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic