Using the Ci date helper, how would I turn ’06/08/2012 17:10pm’ into 12 hour format?
date('m/d/Y H:ia ', strtotime($row->entryCreationDateTime))
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.
That code has nothing to do with CodeIgniter, it’s simply PHP functions. For information on the date function, see the manual page.
The small chatacter
hputs the hour in 12-hour format and capital chatacterHputs the hour in 24-hour format.Change the code to this: