datetimepicker settings

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

datetimepicker settings

Post by G Belgrado » 2019-11-29 15:14

on datetimepicker
in this function to hide seconds
https://bigprof.com/blog/appgini/how-to ... ime-field/

Code: Select all

$j(function() {
    $j('#datetimefield').parents('.input-group')
        .datetimepicker(
            'format', 
            AppGini.datetimeFormat('dt').replace(/:ss/, '')
        );
})
it is possible to do
settings to have a range of hours (example 09 am -- 09 pm)
from which to select
and step minutes every 15 ??

Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

Re: datetimepicker settings

Post by Alisson » 2019-12-02 19:11

This is working for me:

Code: Select all

$j(function () {
  $j('#datetimefield').datetimepicker({
    minDate: moment({hour: 9, minute: 00}),
    maxDate: moment({hour: 21, minute: 15}),
    stepping: 15
  });
});

G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

Re: datetimepicker settings

Post by G Belgrado » 2019-12-02 21:41

Thanks Alisson
but it does not work.
It probably doesn't have the same syntax
of the function that hides the seconds

Post Reply