272
Views
5
Comments
Time format (12/24 hr ) of an input
Application Type
Reactive
Service Studio Version
11.53.12 (Build 61157)

Hi Community, 

We have an issue with the input time format. The client wants to get the time in a 12-hour format from the input. Default the input taking time in 24-hour format

We know that allowing the user to select a time on a 24/12 hour clock, usually depends on the user's OS locale configuration.

But is there any way to get the input in a 12-hour format like shown in the figure without changing the OS locale configuration. ? Or any alternate solution for the requirement ?


Thanks in advance

Vignesh Maliyekkal



 


2023-10-21 19-42-11
Tousif Khan
Champion
2023-04-22 06-16-51
Vignesh Maliyekkal

Hey,

First of all the application is Reactive and yeah I tried the same using this 'Time Picker ' component.

But It shows times with 30-minute intervals (eg 10:00 AM, 10:30 AM). I want to select the exact time 

Regards,

Vignesh

2023-10-21 19-42-11
Tousif Khan
Champion

You can check Oml I have created,

Hope it might help

Sample


TimerPickerSampleReactive.oml
2021-05-18 02-27-17
Manish Gupta
Champion

Hey Vingnesh

In the same widget did you try by updating the Interval in Properties to 1 Sec?


It may help

2022-06-06 09-58-43
Gourav shukla

Hey,

      I have use javaScripts on onfocus  in input widget ,You can check Oml I have created, Hope it might help you

Thank you

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