You don’t have to store it as a timestamp to order by date, yyyy/mm/dd will work just fine.
As for converting the format:
$date="2011/09/19";
$date = strtotime( $date );
echo date( 'F j, Y', $date );
EDIT- oh, maybe I misunderstood, thought you said timestamp, not date. anyway, the conversion code in the second part is what you need. a unix timestamp is the number of seconds since January 1st, 1970.
Related Posts:
- how to compare different timestamps in wp-query for events custom post types?
- How to set a custom post type to have viewable future posts
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- sort events based on event date custom field
- 1 day after custom date change post status to draft
- Custom Post Type Events Archive Grouped By Month
- Display upcoming Events for next 7 Days
- CPT EVENT – listing by month and filtering by category and month – form select option
- Creating a Custom Post Type and Joining with Users
- Select event where start date is smaller than current date and end date is greater than current date
- List of all entries of custom-post-type: Add year-parameter?
- Sort custom post type by most current date picker
- Query not work for current taxonomy
- Should i use a plugin for Event Manager or code my own needs? [closed]
- the ‘save_post’ event triggers when I want to start a new post
- Empty meta-box returns publishdate if no value is set?
- Event Archive by Month
- Creating an Events Feed with Sub Pages/Posts for Each Event
- Yelp-style geographic directory plugin?
- How do I list the next 7 days and any events (cpt) contained in those days
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- set_object_terms action hook based on the function in the published CPT
- connect users to Custom post types
- Query events post type after current date and timezone
- Loop posts in a table ordered by a custom field value
- Custom Loop Event Page
- Add role privileges of the custom post type
- Events with multiple event dates + permalink for each date
- Selecting posts older than the current Unix epoch timestamp
- Query Event Posts by Date
- Listing future posts together with normal posts
- Unable to sort wp_query by date/time with multiple meta_key s
- Count of posts with meta_key filled in?
- How to print different informations for different post types inside The Loop?
- What would be the optimal CPT / Taxonomy design for the following entities structure
- Renaming Custom Post Types and Taxonomies
- Mixing custom post type and taxonomy rewrite structures?
- Resolve a custom post type name vs. page permalink conflict (same slug)
- Mixing regular and custom post types (with meta_query) on home page
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Display current taxonomy term when inside custom post type
- Importing old blog with regular posts into new custom post types
- Adding custom post type to loop
- How can I add dropdown widget/box to admin post page?
- Get posts with tag all post types
- Debug output during filter execution doesn’t work
- Meta Query “IN” doesn’t work with ACF checkbox filter
- No results searching custom post type in admin panel
- Archive or taxonomy pages not working for custom post type
- handling csv data with a custom post type
- get_post_meta returns empty array for terms
- Custom post type not using custom template
- Show one item per category of a custom post type
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Custom post type: Disable single page, but keep archive
- Post count by month of taxonmy term
- Showing another posts on Archive custom post type page
- custom post type category count shortcode
- How to order and group custom post type posts by year and month
- Breaking up CPT output into two columns
- First custom field value (out of several) displayed twice after query
- Custom while loop for hierarchical display of a taxonomy
- Grouping of CPTs and taxonomies into menu groups in admin
- Use date in the URL of custom post type
- Why does not this wp_redirect work in is_single()?
- Create new custom post and post category of same name
- How to add terms (without deleting others)
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Empty search input does not return all posts
- Display custom tags for custom post listing page
- Update all published posts at once
- How to convert custom fields to content
- Variable Products as custom post types
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Limiting Amount of Posts in a Custom Post Type again
- Get taxonomy name used in a current post
- How to hide private posts even if user is admin
- Custom Post type not Querying in switch_to_blog loop
- CPT remove /blog/ by add new portfolio default /blog/%postname%/
- How to make sure, that only the selected post is changing?
- How to make id user can be view content
- pre_get_posts with multiple post types AND a meta_key
- Search form to find custom meta box generated data
- Problem to show custom post type in archive page category wise
- Taxonomy Grid Archive Help?
- Show Custom Post Type taxonomy term that matches custom field
- Post being scheduled that shouldnt be schedulded
- paging is not working properly on news archives page [duplicate]
- Custom Loop and Standard Blog Loop Issue
- Custom Post Query Combined with Conditional Tags
- Dealing with variables with gettext function
- how do I create a breadcrumb to work with multiple custom taxonomies
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Allow admin to determine the order of queries?
- Problems with pagination for a custom post type
- Custom post type permalink structure
- How do I use CPT and permalinks with a mobile theme?
- WordPress custom post type odd and even styling [duplicate]
- Add categories to custom post type