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

MaskedDateTimeInput

Updated on Mar 26, 2026

The RadMaskedDateTimeInput represents the basic control that can be used to restrict the input of DateTime values.

Example 1: Adding a RadMaskedDateTimeInput in XAML

XAML
<input:RadMaskedDateTimeInput Mask="u" />

Properties

The control exposes the following properties which you can use to control the user input:

  • MinValue: Determines the minimum DateTime a user can set with the control.
  • MaxValue: Determines the maximum DateTime a user can set with the control.
  • FallbackValue: Determines the DateTime which will be set when the value is cleared.
  • AutoSelectNextPart: Indicates whether the next part is selected when the current one is filled.
  • EnableKeyNavigation: Indicates whether the sections can be navigated with the arrow keys.
  • AutoCompleteYear: Indicates whether the year part is auto-completed.
  • YearResetValue: Indicates the reset value of the year section (value when you delete the section).
  • MillisecondsStep: Determines the spin step in milliseconds section.
  • SecondsStep: Determines the spin step in seconds section.
  • MinutesStep: Determines the spin step in minutes section.
  • HoursStep: Determines the spin step in hours section.

Standard Date Format codes

Full list of the supported masks can be found in the following MSDN article: Standard DateTime masks

Format CharacterDescription
dShort date pattern
DLong date pattern
fFull date and time (long date and short time)
FFull date time pattern (long date and long time)
gGeneral (short date and short time)
GGeneral (short date and long time)
m, MMonth day pattern
r, RRFC1123 pattern
sSortable date time pattern (based on ISO 8601) using local time
tShort time pattern
TLong time pattern

Custom Date Format Codes

Where standard date codes are too restrictive, create your own custom formats using the format patterns listed below.

Full list of the supported masks can be found in the following MSDN article: Custom DateTime masks

Format PatternDescription
ddThe numeric day of the month.
dddThe abbreviated name of the day of the week.
MThe month name followed by the numeric day.
MMThe numeric month.
MMMThe abbreviated name of the month.
MMMMThe full name of the month.
yThe full month name and year numeric.
yyThe year without the century.
yyyThe year in four digits, including the century.
hThe hour in a 12-hour clock.
hhThe hour in a 12-hour clock.
HThe hour in a 24-hour clock.
HHThe hour in a 24-hour clock.
mThe minute.
mmThe minute.
sThe second.
ssThe second.
tThe first character in the AM/PM designator.
ttThe AM/PM designator.

See Also