Hide Seconds column in SfTimePicker

I am trying to use the SfTimePicker to replace the Xamarin built-in TimePicker control, but the Seconds value is unnecessary in our use case. How can I hide the Seconds column?

2 Replies 1 reply marked as answer

AH Andrew Hoke January 28, 2021 11:55 PM UTC

Missed the Formatting section in the help pages: https://help.syncfusion.com/xamarin/timepicker/formatting?cs-save-lang=1&cs-lang=xaml

Set Format property to "HH_mm" to only show hours and minutes


RS Ruba Shanmugam Syncfusion Team January 29, 2021 08:48 AM UTC

Hi Andrew,

Greetings from Syncfusion.

We have validated your query and you can set the Format property of SfTimePicker as "HH_mm" or "H_mm" to show the hour and minutes.

Currently the following format types are supported.

H_mm - Represents the hour minutes H/mm format.

H_mm_ss - Represents the hour, minutes and seconds in h/mm/ss format.

h_mm_ss_tt - Represents the hour, minutes, seconds and meridian in h/mm/ss/tt format.

h_mm_tt - Represents the hour minutes and meridian in h/mm/tt format.

HH_mm - Represents the hour minutes in HH/mm format.

HH_mm_ss - Represents the hour, minutes and seconds in HH/mm/ss format.

hh_mm_ss_tt - Represents the hour, minutes, seconds and meridian in hh/mm/ss/tt format.

hh_mm_tt - Represents the hour minutes and meridian in hh/mm/tt format.

Can you get the sample from below link.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TimePicker_Format1145195243

Please let us know, if you have any other concerns.

Regards,
Ruba Shanmugam

Marked as answer
Loader.
Up arrow icon