Builds date and time entry nodes from tokens produced for a DateInput.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DateInput.DateTimeParser
Inheritance: objectDateInput.DateTimeParser
Constructors
Creates a parser that uses the specified input format to determine which date and time fields are present.
public DateTimeParser(DateInput parent)
The date input configuration used to interpret the tokens.
Methods
Parses a token sequence into a date, time, or combined date-time entry.
public DateInput.DateEntry Parse(List<DateInput.Token> inputTokens)
The ordered tokens produced by the date-time lexer.
Returns:An entry that can evaluate the parsed components into a date-time value.
When the sequence contains a time entry, the returned DateInput.DateTimeEntry combines it with the parsed date or an DateInput.EmptyDateEntry. With a time-only format, unrecognized non-empty input can instead produce an DateInput.EmptyDateEntry that evaluates to the supplied starting date.