Use case: I want to group an event table by month, and have a date field with the full event date.

Is it possible to just get the month out of that field, so I can group by it? Perhaps by adding a custom format option, so I can output just what's needed? Or do I have to have a separet field for just the month?

Comments

blackdog’s picture

Status: Active » Fixed

Fixed this by making the default format for the field just output the month.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

carvalhar’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Component: Date CCK Field » Code
Status: Closed (fixed) » Active

Hi, i'm reoppenning this because this solution only works with one value date.
Multiple date values creates a repeating group field.
Eg.
Date 1 - 15 january 2012 15:40:10
Date 2- 17 January 2012 15:40:10
Date 3 - 01 February 2012 15:40:10

Outputs:
January
Date 1 - 15 january 2012 15:40:10
January
Date 2- 17 January 2012 15:40:10
February
Date 3 - 01 February 2012 15:40:10

I don't know how to fix it...

ram4nd’s picture

carvalhar’s picture

thanks for this solution.
i solved this using another path: i created a new view listing all dates from a nid and then used Views Field Views who allows to embed a view as a field in a view.
Then it solved my problem.

tim.plunkett’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.