How to Convert a PHP String to Date?
I basicly want to take three inputs and make them into one date object.
Should I then combine them into one string first?
so would it be
$datestring= $year.$month.$day;
then
$time = strtotime( $datestring );
then
$myDate = date( 'y-m-d', $time ); ?
|