$mult3=mysql_fetch_array($mult1); $date = DateTime::createFromFormat("Y-m-d", $mult3['ex_dates']); $onee=$date->format("d").'01'; $date = DateTime::createFromFormat("Y-m-d", $mult3['ex_dates']); $twoo=$date->format("d").'02'; $date = DateTime::createFromFormat("Y-m-d", $mult3['ex_dates']); $three=$date->format("d").'03';
am using the same code in a different page and it works there
$date
DateTime
createFromFormat
FALSE
$mult3['ex_dates']
"Y-m-d"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)