I have a date array in the format which is returned by the php routine date_parse. I need to convert this date array back into a date string.
I am looking for a function which does the reverse of the date_parse routine. That is a function which will accept the date array as a parameter and will return a date string.
http://php.net/manual/en/function.date-parse.php
The date array I have will sometimes have only values for 'year', 'month', and 'day'. Other times it will have values for 'year', 'month', 'day', 'hour', 'minute', and 'second'. If the hour, minute and second values are missing I would expect that the routine would return a date string with 00:00:00 for the hour, minute, and second part of the string.
I have spent some time searching, but so far have not found a function that is the reverse of date_parse.