title: How to convert a date array that was returned from date_parse back into a date string
body: <p>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.  </p>
  
  <p>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.</p>
  
  <p><a href="http://php.net/manual/en/function.date-parse.php" rel="noreferrer">http://php.net/manual/en/function.date-parse.php</a></p>
  
  <p>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.</p>
  
  <p>I have spent some time searching, but so far have not found a function that is the reverse of date_parse.</p>