WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mikevisions
    Member
    Posted 1 year 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/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year 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