iam having the date format stored in database as \"20100723\"(YYYYMMDD) and how do i convert it into \"23-JUL-2010\"
$original = "20100723"; $converted = date("d-M-Y", strtotime($original));
See manual: date(), strtotime()