The C1DateInput control, derived from C1MaskedInput, is specialized for editing the date and time. With the date-specific masked editing field, users can enter dates directly in the control, or use the UP/DOWN ARROW keys to increase/decrease the value of the current field. The following image shows a C1DateInput control:
Using the DateFormat property, you can specify the following input without writing any custom validation logic in your application:
• Mask literals (characters that should appear directly in the C1DateInput control); for example, the colon (:) in time or the separator (/) in a date.
• The type of input required at a given position in the mask; for example, numeric or alphabetic.
• Custom input characters.
Key Benefits
The key benefits of C1DateInput include the following:
• C1DateInput control renders a date editor. Use the DateFormat property to set/get the date format character or pattern.
• You can set the C1DateInput control to interact with the C1WebCalendar control. Use the WebCalendar property to integrate C1DateInput with C1WebCalendar.
• You can use the DateFormatResultPattern property to get the result of the date pattern according to the selected culture.
• Ability to choose a specific culture for C1DateInput, for example, English, Spanish, German, Russian, and so on. The date pattern and other aspects of date string depend on the selected Culture property.
• Client-side events available for you to use to increase the performance of your Web form by eliminating a postback.
|