Is there a Bootstrap (native or 3rd party) widget that allows the user to specify a Time Duration?

To elaborate; the user is specifying how long a task can take. It can take 1 minute, 1 hour and 1 minute, 1 day 1 hour and 1 minute, 1 week ..., 1 month and so on.

So the units (minutes, hours, etc) will change according to how the user desires. The only widget I have found is one that lets you specify a time (hours, minutes, seconds). I am thinking I can create many number inputs (one for month, one for week and so on) but I dont want to reinvent the wheel if there is a widget out there.

Are you aware of a widget that allows a user to specify a time duration in months, weeks, days, hours and minutes?


I found this: https://github.com/koss-lebedev/bootstrap-duration-picker it is easy to use, I like it. This plug-in add bootstrap on another jquery-duration-picker. To use this plug-in you have to include the .js and .css that they are in the src folder. So it looks like:

enter image description here

Unfortunately, the months are not implemented...



// or

    lang: 'en',
    formatter: some_function // a function that gets numbers displayed in input and returns a formatted one,
    showSeconds: false // defines whether to show seconds or not 
| improve this answer | |
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – Tom Sep 29 '16 at 22:12
  • I'm sorry, thank you for the explanation. – Patrick Barattin Sep 29 '16 at 22:16
  • 1
    No problem, your answer may answer the question, just be sure to check out the tour of this site and our answer quality guidelines to improve it, thanks:) – Tom Sep 29 '16 at 22:19
  • I updated my answer is correct now? – Patrick Barattin Sep 29 '16 at 22:38
  • Well, it seems that it doesn't include the month feature which is ok but might warrant a downvote (or hopefully just a comment) from the op but also you copied and pasted that info above from the linked site, something that's definitely frowned upon. If you could go through what the OP wanted and their requirements and state how this software (library) answers their question. Also, anything copied and pasted needs to be in a quote form (use the > to start a block quote). – Tom Sep 29 '16 at 22:41

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.