Is there any way that I can select quarters in a date field not the actual date. I want the date field exactly like in the below image.

enter image description here

I have checked for the options in the date field but I didn't find any such option?

Or is there any other module which provides the same functionality?

1 Answer 1


I also could not find a widget that provides this functionality but I would stick to the date field.

You need 2 things:

  1. A widget that allows you a selection like that.
  2. A custom format for the display of your field's value. The default date format will not help here since PHP does not provide the quarter.

Keep in mind that the storage for the values will be a normal date but you could i. e. interpret "2017-01-01 00:00:00" as "Quarter 1 2017", "2017-04-01 00:00:00" as "Quarter 2 2017", etc.

You can find further information on how to create your widget and formatter here:

  • Widget: You can also take a look at the date_popup sub module of the date module.
  • Formatter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.