mat30 — 2012-01-14T17:36:11-05:00 — #1
I don't really get the date formats in Drupal 7.
How come every date seems to use the medium format? What's the point of the other formats, if that's the case? And how can I use a different format for different display instances, e.g. comments and articles? I can theme-override the dates, but I'd be happier (and it would be better for the clients) if I could get that customisation just with the UI settings.
awasson — 2012-01-15T17:58:45-05:00 — #2
I've never changed the date format (short, med, long) in regular content except to change the way it's set up mm/dd/yyyy or dd/mm/yyy, etc... I have found it very useful to mess about with the date formats in my views though and that's where I think they are probably must useful.
mat30 — 2012-01-16T15:34:55-05:00 — #3
How do you get anything other than medium to be used, though?
awasson — 2012-01-16T17:18:27-05:00 — #4
Check out this thread ofver at Drupal.org: http://drupal.org/node/1075692
mat30 — 2012-01-16T18:44:26-05:00 — #5
As I mentioned above, I can—and do—theme-override dates with no great difficulty (and simpler than the code at your URL). I just wondered (1) why the three date formats exist when Drupal seems only to use one of them for everything; and (2) why there is apparently no option anywhere to pick a date format for each content type. Which is a totally dumb omission.
awasson — 2012-01-16T18:55:39-05:00 — #6
I expect the reason they have 3 formats is so that you can take advantage of them with customizing. ie: modules or theming. As I mentioned earlier, I sue this often with views when I add a date field to a content type and then create views for that content.