Getting the following error when I try to put the date in the follwing format:
date_format(date_create($this->output->publication_date), 'Y-m-d H:i:s');
"Invalid value for: Invalid format: \"2015-04-14 00:00:00\" is
malformed at \" 00:00:00\"
What is the correct format that is needed to set the publication date when uploading a video to youtube?
According to the youtube api the format should be
How to do this correctly in PHP?