In my web application (Drupal 7) I'm using a date field with year-month-day granularity, but I would like, for a specific content type, to add also hours and minutes.

  1. Is this possible to achieve? How?
  2. Is this safe or it'll mess with the other content types, existing views etc.?

I've thought of adding an extra time only field, so I've checked some modules like CCK Time or Timefield, but they don't seem maintained anymore (last release is about two years old).

Use case: I have an "Absence" content type. When a student is absent, the teacher selects the day when the student is absent, hours and minutes aren't needed. I'm now creating an "Early exit" content type: if a students has to go out from school before the regular school day end, in that case the teacher need also the time when the student left the school. As an alternative I was thinking on two integer fields (hours and minuter), but it doesn't sound as an optimal solution to me.

1 Answer 1


Date module has the ability to add time field with the same field , I think you need to enable that in the field settings. see screenshot:enter image description here

  • Yeah, but this applies to all the content types where this field is used. I would like to add hours and minutes only to the date field in one content type, the others should remain year-moth-day Aug 27, 2015 at 15:51
  • That's fine, just change the date field setting in the content type you want, it wont affect the other content types.
    – sam2de
    Aug 27, 2015 at 15:53
  • I tried just to be sure. It changed everywhere, not only in the content type I want. As the setting page says: "These settings apply to the Date field everywhere it is used." Aug 27, 2015 at 15:58
  • Weird, I recall that I did it at some point before, worse case you could create another date field for that content type, unless you have data you want to keep.
    – sam2de
    Aug 27, 2015 at 16:03

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.