Is it possible to use some constant strings in date formatting in WordPress?
something like:
year:Y, month:F
which would translate to:
year:2012, month:February
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.
Yes that’s possible. WordPress uses the php: date-function to format the date, thus you can use the following format on the general settings page of your blog.
To use constant string you will need to escape every character that should not be parsed as part of the date:
This formatting string will result in “year: 2013, month: February”.
See also the WordPress Codex on formatting date and time.