I have used the “Add format type” option under Date and Time to add a format besides Long Medium and Short. My problem is that my format is being ignored and it is defaulting to Medium.
Any ideas?
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.
In Drupal 6, custom date formats are a feature of date.module and therefore not integrated with format_date().
This has been changed in Drupal 7, where this is a core feature now.
However, you can specify ‘custom’ as type and then pass the desired $format in directly. You could write a simple wrapper function that gets the format from a custom date format and then passes that to format_date().