$post_id = 12;
echo get_the_date( 'Y-m-d',$post_id);
Related Posts:
- the_modified_date returns published date
- Sort / display recent posts by publish date
- suffix title with “EXPIRED” when scheduled post has reached it’s published date
- Post publish date [duplicate]
- check if a draft has been moved there from publish to draft
- Java SimpleDateFormat for YYYY-MM-DDThh:mm:ssTZD
- R Programming Error in cov.wt(z) : ‘x’ must contain finite values only
- Convert a Unix timestamp to time in JavaScript
- Convert number to month name in PHP
- Post doesn’t show date if there’s another post with the same date
- The purpose of the post_date_gmt?
- Why my uploaded picture was loaded into /uploads/2015/02 not /uploads/2016/01?
- How to integrate get_post_time with date_i18n function?
- Is it possible to Schedule Attachments in WordPress?
- Display a post’s publish date from 2112
- Permitting WordPress to accept dates outside of 1902-2038
- How to show the real post date in a draft
- Converting Unix timestamp to wordpress date
- Keeping post_date same as the pending post_date on privately publishing the post
- Date comparison : which date format?
- featuring old articles without messing up with the archive
- Modify Date Format to German
- XML export posts from one single day
- Serve visitor post time adjusted to their timezone
- Automatically move pending posts after 30 days and, update the post date, when users update the posts
- month name translation
- Count days from registration date to today
- Remove “at” string from wordpress comment date
- WordPress post dating – pre 1901?
- Styling the date format with date_i18n
- Change date from 2015/02/23 to “1 min ago”
- Display page only if user registered before a specific date
- Date and time format for UK in a custom post type [closed]
- Display post date as 04/26/2013
- What are the “U” and “G” time formats?
- date() returns incorrect value if used from WordPress theme, but correct otherwise
- How to get date using timezone saved in options? [duplicate]
- wordpress convert timestamp to date not correctly
- Show post updated date instead of published
- Set the publication date independent of the scheduled publication date
- Add a link to display posts with a specific tag within a date range
- After wp_insert_post(), date_i18n() and date() outputs are adjusted to GMT
- Mini app that shows one unique quote each day. 56 rotating posts rotating for each themed weekday. It works, but I need your advice
- How to add a sortable date column in an admin page?
- Events are all showing the current date
- Set meta field to publish date + 2 weeks
- Do multiple jobs on date change without WordPress cron job
- Escaping date string in url with wordpress
- Is there anything special I have to think of when setting post_date_gmt when inserting a new post?
- Format Date for Manual Insertion into post
- How replace post date with event date
- Translate current_time
- Are there any know limitations on the date field, especially how old dates can be?
- Conditional: IF post creation date is in the first half OR last half of the year [closed]
- Display published time for today’s posts only
- Change post date for testing purposes
- Display Author Registration Date
- Local Post Date in WordPress Admin Panel Tables
- How display modified date of most recent modified post in wordpress?
- how to show date of latest post in wordpress site?
- Change News Story Layout Based on Date Range
- Switch Categories on a Specific Date?
- date format of custom date variable
- Is there way to toggle the publish date display?
- Is it possible to change X Hours Ago to date in WP Admin?
- Display Current Date using shortcode
- Create a date archives template page for custom post type
- changing type of date picker in contact form 7 date picker plugin
- If X Amount of Time Has Passed Since Post Was Published, Do Something
- Get current user last post date
- Not work hide comments with future date
- Translate Post date (month) of china language
- How to display posts categori list by day wordpres
- Can’t convert ACF datepicker value to DateTime oject – gives me a boolean
- Count time from registration date to today
- Tumblr imported blog showing wrong date
- Timezone for Plugin
- How to get Unix Local Time?
- How to display Date and Time in Tamil Language?
- Create a new post on a specified publish date via link?
- Notify after 3,6,9 and then 12 months after plugin activation
- Issue with strtotime() and Meta Box date
- Use the_date with link
- Display ‘modified date’ in WordPress Twenty Fourteen
- Show post date on the page
- automatic send email at custom time
- Change the date and time in wordpress
- How to second orderby in “pre_get_posts” by meta value or combine single date and time to timestamp
- Make datestamp for status updates show time
- Date comparison : which date format?
- Advanced Custom Fields and date picker, show posts only if the day is today no matter the year
- Saving Revision of post meta key/value on each update_post_meta event
- Use esc_attr() to print month name in French
- Get system timestamp in wordpress
- Limit access to a page
- Retrieve current and localized month
- wp_date doesn’t work
- How to get the date of all blog posts
- Docker Container time & timezone (will not reflect changes)
- How to customize Date Format for American visitors?