TimePicker: Spinner does not display as expected when the time format does not have a space tth:mm
when having the following format in cultures where there isn't a space for am/pm and time: tth:mm or h:mmtt
the spinner does not display as expected
for example such culture is Chinese (Taiwan) the am/pm and hour spinners are missing:
1 comment
ADMIN
Didi
Posted on:23 Dec 2025 11:21
The issue also occurs in the DateTimePicker when setting the time format.
Workaround:
// Workaround for cultures that use AM/PM designators without spaces (e.g., "tth:mm")// Add space after "tt" to ensure proper operation in the TimePicker control.if (timeFormat == "tth:mm" || timeFormat == "TTh:mm")
{
timeFormat = timeFormat.Replace("tth", "tt h").Replace("TTh", "TT h");
}
then set the timeFormat to the RadTimePicker SpinnerFormat property.