I have a content type with a date field. I need to output them grouping by year, i.e.
2011
- nodeA 2011-09-01
- nodeB 2011-01-29
2010
- nodeC 2010-12-08
How can I do that?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIn the configuration of that field
In the format settings of the view, group by this field.
@phils suggestion needs an update: just strip html for the field (in the Rewrite Results section). I can validate that this worked for me where @Oswald's solution did not.
Disable RDF-Module from Core.
Had the same problem and after searching for hours I finally stumpled upon this hint from KarenS: http://drupal.org/node/1253562#comment-4886998 Just disable the RDF-Module and maybe re-edit your date formats.