86
Views
9
Comments
Solved
Date Picker Range with Time
Question
Application Type
Reactive
Service Studio Version
11.54.10 (Build 62419)
Platform Version
11.20.0 (Build 38549)

Is there any way to use the widget [Date Picker Range] to include picking the time? E.g: 12/01/2024 13:50

2025-01-31 03-15-38
Irfan Ahamed Abdul Shukoor
Solution

Hi ET,

Please check the Outsystems document for date picker example is given for Date and Time format.

https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_mobile_and_reactive_patterns/interaction/date_picker/


Follow the same, hope it helps.


Thanks


UserImage.jpg
El T

It would be nice if DatePickerRange could do the job as datepicker so that I don't have to use two inputs to act as a range. Thanks for your inputs!

2024-12-10 04-40-04
Gitansh Anand
Solution

Hi El T, there are two issues with DatePickerRange for enabling time input, first the option to enable time is missing in configuration setting, second the output returned by DatePickerRange is of Date type.

I have built a solution for that, please check the attached OML (screenshot attached for reference), what I have done is crated my own configuration structure, I have only added enable time and minute increment options in the structure, you can add more as per your requirement (refer to this for configuration options), and created the new action to set DatePickerRange configuration based on the new structure, this solves the first problem to enable time, for the second issue, I have used the output to get date and string manipulation to extract time from DataPickerRange input variable to create start and end DateTime values, alternatively you can create a copy of the DatePickerRange block from OutSystemsUI and change the datatype of the variable in it.

Thanks
Gitansh Anand

DatePickerRangeWithTime.oml
UserImage.jpg
El T

Without relying on installing new components, this is a very good workaround albeit requires more logic. Thank you for the great solution!

2021-11-12 04-59-31
Manikandan Sambasivam

Hi,

Please check this forge component

https://www.outsystems.com/forge/component-overview/12063/date-time-range-picker-reactive-o11

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @El T

please refer forge component Click here

Rajat

2025-02-07 09-54-44
Sivasakthi Munusamy

Hi @El T

If you want this format means  (E.g: 12/01/2024 13:50)  you can use the data type of that variable as date time (or) you can refer the below forge component, If it helps.

https://www.outsystems.com/forge/component-overview/12063/date-time-range-picker-reactive-o11



2022-12-30 07-28-09
Navneet Garg

There are outsysetms forge components, and you can use html date time picker input element as well

https://www.outsystems.com/forge/component-overview/12063/date-time-range-picker-reactive-o11

https://www.w3schools.com/tags/att_input_type_datetime-local.asp

HTML Version without any component


2025-12-03 17-22-41
Lavanya Kamalaguru

Hi,

Just update your datatype of the variable from data ----> Date Time it will automatically includes time.


2025-01-31 03-15-38
Irfan Ahamed Abdul Shukoor
Solution

Hi ET,

Please check the Outsystems document for date picker example is given for Date and Time format.

https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_mobile_and_reactive_patterns/interaction/date_picker/


Follow the same, hope it helps.


Thanks


UserImage.jpg
El T

It would be nice if DatePickerRange could do the job as datepicker so that I don't have to use two inputs to act as a range. Thanks for your inputs!

2024-12-10 04-40-04
Gitansh Anand
Solution

Hi El T, there are two issues with DatePickerRange for enabling time input, first the option to enable time is missing in configuration setting, second the output returned by DatePickerRange is of Date type.

I have built a solution for that, please check the attached OML (screenshot attached for reference), what I have done is crated my own configuration structure, I have only added enable time and minute increment options in the structure, you can add more as per your requirement (refer to this for configuration options), and created the new action to set DatePickerRange configuration based on the new structure, this solves the first problem to enable time, for the second issue, I have used the output to get date and string manipulation to extract time from DataPickerRange input variable to create start and end DateTime values, alternatively you can create a copy of the DatePickerRange block from OutSystemsUI and change the datatype of the variable in it.

Thanks
Gitansh Anand

DatePickerRangeWithTime.oml
UserImage.jpg
El T

Without relying on installing new components, this is a very good workaround albeit requires more logic. Thank you for the great solution!

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