The date module provides a handy widget for specifying a date. Is there something similar on Drupal 6 for specifying a length of time such as 6 months or 3 days? The time span will need to be converted to or stored as seconds for use by my module.


The Interval Field module looks like it would do the trick.

Interval field gives you a simple field and widget to allow users to enter interval values eg

  • 2 months
  • 3 days
  • 4 years
| improve this answer | |
  • Good answer for 7, but I should have mentioned I'm on Drupal 6. I'll edit my question. – htoip Apr 9 '12 at 23:02

For Drupal 6, try the Duration module.

Another great module for Drupal 7, is the Time Period module.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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