hello,
i have a form that selects the date. it posts data as 03/05/2014 in 1 variable.. can someone tell me how i can implode it so that i can split the month day year
$date ="03/05/2014";
$date_month = $date['1'];
$date_day = $date['2'];
$date_year = $date['3'];
something like that i am guessing..
Split Date into 3 variables
Moderator: General Moderators
Re: Split Date into 3 variables
explode worked fine.
thank you
thank you
Re: Split Date into 3 variables
Depending on why you're doing this, it may be better to just instantiate a DateTime object.