Toolset Types
Store time in UNIX timestamp format in database (2 posts)

  1. bykastar
    Posted 3 years ago #

    I need to filter posts by values in datetime custom field. So I created date field with "input date and time" option. In database (postmeta table) values stored as unix timestamp and serialized array. But values in unix timestamp format is rounded to date_0:00:00.
    Screenshot: http://clip2net.com/s/51iRO4
    Is there only way to get time to unserialize values after getting results of sql query? Or I can force types to store not rounded values as timestamp and filter via sql?
    Thanks for plugin, sorry for my poor english:)


  2. mbigul
    Posted 3 years ago #

    Dear bykastar,

    Please check this link for more details http://wp-types.com/documentation/functions/#Date

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Toolset Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic