Date and Time Intervals

  • 17 September 2018
  • 2 replies
  • 147 views

Badge +2

Is there a way I can change the time intervals from 5 minutes  to 1 minute  when selecting the Date and Time control on a list? I saw Mary's solution of this here, however since we're creating a form that will have over 100 Date and Time columns it would be too time consuming to do it this way. Any suggestions?


2 replies

Badge +1

Hi Laura,

jQuery simple Date Time picker might work for you.

jQuery simple datetimepicker

Please refer to the below site

https://www.npmjs.com/package/jquery-simple-datetimepicker

To set the interval use "minute_interval" option:

<script type="text/javascript">
        $(function(){
            $('#date_picker').dtpicker({
                'minute_interval' : 15
            });
        });
</script>

Hope this helps

regards,

JJ

Badge +11
Did you find a solution ?

Reply