I am having difficulty formatting a string to a human-readable date format.
I have:
07122012
and need to get
7 Dec 2012
Tried:
date("j M Y", strtotime($str));
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.
try:
it will do the trick, but the best thing is to read the php documentation (probably there is a built in feature)