Forum Moderators: coopster
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
if
day = 12
month = 6
year = 1976
entered in form
how to format it into a date in php...
I know its really silly ... as im new to PHP i'm stumbling even at slightest pieces like this...
Will anybody help me pls...?
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$date = $day."/".$month."/".$year;
echo $date; would give you something like this 12/6/1976
$makingtime = date("F j, Y", mktime(0, 0, 0, $day, $month, $year));
//This would give you something like December 6, 1976
Habtom