The Codex defines the post_date value returned from a wp.getPost as a "datetime." I'm unable to print that value directly, as that results in error:
The website encountered an unexpected error. Please try again later.
I tried using Date() such as
$string = Date("Y/m", datetime_value)
but just get an empty string. I've done a lot of searching on this and I can't locate any definitive posts on how you extract values like month and year from this particular returned data type and make them strings.
Can someone please explain how to turn this data type into useful values?
Thanks in advance!