Forums
Home / Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies / custom field DATE not work
(@estudiosmedia)
8 years, 7 months ago
hi, the problem is when i create a custom field with date type, and i want display in the fronted ej: get_post_meta($postid, ‘wpcf-date’, true) the result is: 1442131200
for: sept 15 2015 / 9:00
https://wordpress.org/plugins/types/
(@iworks)
Dear estudiosmedia
This is correct and expected. We store date field (mostly) as UNIX timestamp.
Read more: https://en.wikipedia.org/wiki/Unix_time
cheers, Marcin