String Format

Date and Time Picker for Xamarin allows you to use standard or custom date and time format strings through the SpinnerFormatString property. Depending on what format is set, the picker visualizes spinner controls with prepopulated values to be picked. This feature allows you to create a date picker, time picker or combination of both.

  • SpinnerFormatString(string): Defines the string format.

The available Standard Date and Time format strings that can be set to the SpinnerFormatString property are described in the table below:

Supported Standard Date and Time Format String
"MM/dd/yyyy HH:mm"
"MM/dd/yyyy hh:mm tt"
"MM/dd/yyyy H:mm"
"MM/dd/yyyy HH:mm:ss"
"MMMM dd"
"hh:mm t"

You can set only short Standard Date and Time Format Strings to the DateTime Picker control.

Supported Separators

When SpinnerFormatString is set and device culture is changed, the separators used for the format string won't be changed:

Supported Date and Time Separators Formats
" "


SpinnerFormatString="MMMM dd"

<telerikInput:RadDateTimePicker SpinnerFormatString="MMMM dd" />

And the result:


<telerikInput:RadDateTimePicker SpinnerFormatString="dd" />

And the result:


<telerikInput:RadDateTimePicker SpinnerFormatString="H:mm" />

And the result:

See Also

In this article
Not finding the help you need? Improve this article