Home:ALL Converter>How to convert the date integer value of ACF plugin in WordPress?

How to convert the date integer value of ACF plugin in WordPress?

Ask Time:2019-06-16T19:07:36         Author:Shibbir

Json Formatter

I am using the jQuery Date Picker of WordPress ACF Plugin to make a custom Meta Box of a custom POST.

Now, when this Date Picker value is saved to the database table called xxx_postmeta I see that value is:

20190630

enter image description here

So then when I get that meta value using below code:

<?php echo date('F j, Y ',  get_post_meta( get_the_ID(), 'article_1_pub_date', true)) ; ?>

then the date is showing wrong, Like this:

August 22, 1970

Is there any wrong or ACF issue?

Author:Shibbir,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56618228/how-to-convert-the-date-integer-value-of-acf-plugin-in-wordpress
yy