I am adding a Events to a site in Drupal 7 with Date, Calender module and a few others.
When I looked at the Content Type (Events) I had created and wanted to fill in some test events I found that the Date filed showed the date in mm-dd-yyyy format - but I need dd-mm-yyyy.
So I went to http://www.example.com/admin/config/regional/date-time and changed the date settings to what I needed in long, medium and short.
But the date field in the Content Type (Events) did not change. I looked up and down www.drupal.org and the search engines to find an answer - but was not able to find what I was looking for.
So, I added some more date fields and they turned out correct.
Ergo, the answer is - once the date field has been set the at that time current date format is stored & locked. Later date format changes will not effect them.
Solution - delete the field with the unwanted formatting and create a new date field under the correct date format setting.
Sure - if you have added data already to a site or if you realise that you need to make the changes on a life site you'll have a bid of a headache exporting nodes and re-formatting the dates before re-importing them into a new Content Type.
..........

Comments

screon’s picture

Hi,

I came across the same problem today. However, there is an easier solution available. I'll post the solution here just in case someone else bumps into this problem:

  • Go to the field settings page of your date field.
    • e.g.: admin/structure/types/manage/my_content_type/fields/field_mydate.
  • In the first part of the page, there is a collapsed fieldset called "More settings and values".
  • Click it open, under "Date entry" you'll find a select list called "Date entry options".
  • There you can select the format and order of the date of your choice.
  • Save the field and revisit the node/add page.