+14 votes
by (13.6m points)

Do you know any javascript/jQuery or any other JS library calendar that allows the user to select the year but also the minutes???

jQuery timepicker addon by Trent Richardson would have been perfect but the user cannot change the year, just the month. I have to follow rigid specs on this one...

3 Answers

+3 votes
by (13.6m points)

Use this plugin to unobtrusively add a datetimepicker, datepicker or timepicker dropdown to your forms. It's easy to customize options.

Refer this link

Edit:

  <input type="text" name="date6" value="">
  <script type="text/javascript">
      $(function(){
         $('*[name=date6]').appendDtpicker({
         "inline": true,
         "minuteInterval": 15
         });
      });
  </script>

by the use of minuteInterval property you can set minutes interval.

For more information about this code this link will be help full to you.

this llink for code :

jquery-simple-datetimepicker

this link for Demo :

Demo - jquery-simple-datetimepicker

I am not sure this code is true or not but it may help you. I have refer this code from above links.

i hope this link will helpful to you.

0 votes
by (13.6m points)

The Time Picker add-on by Trent Richardson works correctly for you and meets all of your requirements specified, you just need to add the options that the jQuery DatePicker requires to enable the Year and Month to be selectable.

From the Options page of the Time-Picker add-on :

The timepicker does inherit all options from datepicker.

Code :

$('#test').datetimepicker({
    changeMonth: true,
    changeYear: true
});

This will now create a Date-Time picker with the Year and Months as selectable dropdowns.

0 votes
by (13.6m points)

How about this modification on the JQuery UI TimePicker http://puna.net.nz/timepicker.htm#

Related questions

+2 votes
2 answers
+8 votes
3 answers
+4 votes
2 answers
...