101
Views
9
Comments
how to make the minutes jump 15 by 15 instead of 1 2 3 4 5 6 7 8 9

How to make the minutes jump 15 by 15 instead of 1 2 3 4 5 6 7 8 9  ,

i want to make the miniutes slots 15 min  like

03 : 00

03:15

03:30

03:45

04:00

04:15

04:30

04:45

 and so on ...


2023-08-28 07-00-10
Paulo Torres
Champion

This Date Picker is from the browser, you can use the DatePicker from OutsystemsUI, I'm quite sure you have this option there.

Regards

UserImage.jpg
Omar AbdElhadi

What do you mean by this from the browser ? i am using the calnder in OutSystem 


2023-08-28 07-00-10
Paulo Torres
Champion
2025-04-10 11-25-12
Diogo Reis

That date picker is the default when you have a DateTime input. 

OutSystems UI has another widget, named DatePicker, that has other options and may have that configuration that you want

UserImage.jpg
Omar AbdElhadi

I used it ! but it increment minutes only 5 min by 5 min !

i want it to increment 15 min by 15 min ! how to do that !!!



UserImage.jpg
Omar AbdElhadi

how to control the Calendar Increment ! 15 min each time i want to increment minutes 

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello Omar,

You can add following JavaScript into OnReady event of you page like this 


Inside JavaScript widget you can add following code:

var minutes = document.getElementsByClassName('numInput flatpickr-minute');

if(minutes.length > 0)

   minutes[0].step=15;

}


2024-05-23 23-59-34
FLAVIO LEANDRO DA SILVA

Mostafa Othman, did you use this script in inputdata or datepicker?

I implemented it on both, but it didn't work.

2020-11-25 10-45-32
Mostafa Othman
Champion

Hi Flavio,

I am using DatePicker and its working fine


You can check also class name used to select date picker into JavaScript is correct and I am using this JavaScript into OnReady event of my screen


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.