I have an XML object being returned, and inside is a date and time code that looks like this,
[Date] => 20120229
[Time] => 032400
How can I convert those into a date and time like, 02-29-1012 and 03:24:00 ?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assume Date is in $date and time in $Time.
http://www.php.net/manual/en/datetime.createfromformat.php