<?php $myDateTime = DateTime::createFromFormat('ymd', '140509'); $newDateString = DateTime::createFromFormat('ymd', '140509')->format('Y-m-d'); var_dump($newDateString); ?>
You have javascript disabled. You will not be able to edit any code.