The PHP code below returns dates in this format:
July 27, 2010 7:36 pm
How could I make it return dates with capital letters? Here’s what I want;
JULY 27, 2010 7:36 PM
Thanks in advance,
John
The PHP code:
format('F j, Y &\nb\sp &\nb\sp g:i a')
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.
The strtoupper() function converts all the characters in a string to uppercase. You can use it in the following way:
If you have having problems with the spaces, remember that it’s
. Inserting capitals there might not work either. You could try the following: