Posted By

Tagged

Convert YYYY-DD-MM dates to M d, Y format

Released into the public domain. Example:echo convert_dates('On 1969-07-20, the first Moon landing occurred. The crew returned to Earth on 1969-07-24. The last landing occurred on 1972-12-11.'); prints "On July 20, 1969, the first Moon landing occurred. The crew returned to Earth on July 24, 1969. The last landing occurred on December 11, 1972."