The “unreadable format” you have posted is known as a UNIX timestamp. It is the number of seconds from January 1, 1970, to the date represented.
Using a handy online tool, you can quickly see what that timestamp equates to if needed: http://www.unixtimestamp.com/index.php
In order to reformat this timestamp, in your case YYYY-MM-DD, you will need to reference the PHP date format parameters: http://php.net/manual/en/function.date.php
For your example, you would want 'Y-m-d'
. This assumes you want leading zeros on month and day.
Y = A full numeric representation of a year, 4 digits
m = Numeric representation of a month, with leading zeros
d = Day of the month, 2 digits with leading zeros
Related Posts:
- Is it safe to use ‘date_default_timezone_set’ in plugin file?
- Finding difference in days
- How to get time difference between publish date and now?
- filter date and time to differents time zone
- Relative time – how to calculate difference beween post publish date and current time
- WordPress outputs mm/dd but it should be opposite
- timestamp and scheduled post irregularities
- How can i display time minus 6 hours
- How get exact time difference
- Where does the time get pulled from in the_time()
- Human time difference in months instead of days. How?
- admin end post published time display not working correctly
- Calculate how much time passed comparing WordPress comment and current time
- Can someone explain why wordpress uses two column for storing time values?
- Proper formatting of post_date for wp_insert_post?
- What’s the difference between get_the_time and get_the_date?
- Default timezone hardcoded as UTC?
- How to convert DateTime() to display time based on WordPress timezone setting?
- Running WP Cron on specific local time
- Whats the way to format a date after using get_posts()
- Converting Unix timestamp to wordpress date
- Date, Time, and Timezones
- What is the best workaround for supporting all existing DATEs?
- How to get year, month and hour in WordPress?
- Date format with genitive case of the month name is not working
- How do I display posts by day?
- Echo Messages By Checking current_time()
- custom field value date convert to unix timestamp problems
- How would I bulk change posting date?
- Get last seen date/time in wordpress get_comments() [closed]
- Query by custom dates in UNIX Time
- If else statement based on date_diff value
- How do I create a dynamically-updated copyright statement?
- How do you format the date as a two digit year? (ex. “10.12.10” instead of “10.12.2010”)
- Formating the display of a post’s date, outside the Loop
- How can I display the current time? [closed]
- Creating a function within functions.php to change the date
- Calculate future date
- What are the “U” and “G” time formats?
- php console log speed [closed]
- display month in french in wordpress/php?
- Timezone UTC to PST
- How do I set up my blog home page to show only this weeke’s posts automatically?
- UTC/local time in Worpdress
- Convert CST published date time to MST timezone
- Randomised Post Time
- Trouble Formatting DateTime
- Placed on + only date (not time)
- Display date and time in comments
- Time Issue xx hours ago
- Get WordPress current date/time
- Separately formatting date elements
- Show the_date with link
- Displaying time & date problem
- Time & Date on Post – Time Ago Custom Function
- Display time as “12:00 noon” instead of “12:00 pm”
- How do I make a page not visible at a certain time? [closed]
- How to amend time format of comments, using child-theme?
- wordpress blog posts’s time
- Display posts starting from today date
- Separating publish date and last modified
- Why do I need to set my PHP timezone when it’s already set in WordPress?
- How to get User Time Zone in WordPress?
- Compare date fails when date is in next year [closed]
- How to setup language of a date in a plugin
- How to show different timestamp
- Default Timezone setting in WordPress – is that global?
- Problems with the_time,the_date, get_the_time
- Comparing Time with the_time();
- Date time doesn’t show correctly in qTranslate [closed]
- Timed post and tweet?
- wp_dropdown_categories by date?
- WordPress Translate Date Function is giving Error
- Measure time in ONLY HOUR format
- Apply filters on date format
- How to fix mysql2date() for 5.3.2 version?
- Count time from registration date to today
- Update existing post times to random times?
- Incorrect display of bbpress forum topics & replies
- Can’t add to time? [closed]
- Timezone for Plugin
- How to get Unix Local Time?
- Render the published date/time formatted in ISO 8601 using Timber (.twig)
- Change the year of the whole site
- datetime picker, timestamps and meta queries
- Display datetime in user’s timezone
- Pull ‘Popular Posts’ within specific timeframe
- Block post updates and deletion after a set period
- Replicate the_date function when using a custom field
- How to second orderby in “pre_get_posts” by meta value or combine single date and time to timestamp
- Change the counter in terms of date
- Query sub subpages based on specific date?
- Adding a class to last post in the_date
- Get system timestamp in wordpress
- Show monthly or daily archives
- Standard API for rendering a date form
- Datetime on time tag wordpress puts it outside the tag
- Display the last date, regardless of articles
- How to customize Date Format for American visitors?
- WP_Query filter Posts by timestamp event (range start and end) and by month (next 12 month)