<?php date_default_timezone_set('America/New_York'); $date = "3212"; echo DateTime::createFromFormat("Yz", "201$date")->format("Y-m-d"); // 2013-08-01
You have javascript disabled. You will not be able to edit any code.