New to Telerik UI for WinFormsStart a free 30-day trial

Format String

Updated over 6 months ago

To build a custom format string you can use the format specifiers provided by Microsoft. The format specifiers are listed here: Format Specifiers.

If you want to add a specific content to the string you will need to enclose in with single quotes. Here is an example that shows this.

Using a custom format string

C#
radTimeSpanPicker1.Format = "dd\'days \'hh\'hours \'mm\'minutes \'ss\'seconds \'fff\'milliseconds\'";

You can find in the screenshot below the obtained result.

WinForms RadTimeSpanPicker Format String

Not finding the help you need?
Contact Support