PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// year month and day received from user input
echo $year;
echo $month;
echo $day;
$post_date = date('Y,m,d');
$required_by = date('$year,$month,$day'); // I want to save it as the above date format
echo $required_by;
I get this long output -
$07eamWed, 14 Mar 2007 00:31:17 +0000,$03o33112,$14am07'