Today im working with PHP and MySQL and i store Dates in an Timestamp Field into MySQL, But by default is in 24/h Format, If anyone Know how can i Determine this hour to AM or PM Example:
14:05 -> 2:05PM
02:05 -> 2:05AM
Many Thanks for your time.
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.
You can use
DATE_FORMAT()