Example of Format in ASP.NET Core DateTimePicker Control

DateTimePicker
Format

In this sample, the DateTimePicker has been configured with the dd-MMM-yy hh:mm a date time format. To change this current date time format, go to the properties panel at the right side and select a date format from the available options. For mobile mode touch the icon at the right side and select a date time format from the available options.

Properties
MM.dd.yyyy hh:mm a, yyyy-MM-dd HH:mm

Date Formats sample illustrates the support of custom date format in the DateTimePicker component by using the format property. You can also change the date format by selecting it from the format options in the properties panel. Use the timeFormat property to format the displayed time value in the popup list.

Furthermore, this example showcases the flexible date value parsing functionality available in DateTimePicker component. By utilizing the InputFormats property, users can enter dates in various formats, which will be automatically parsed and formatted according to the chosen date format.

More information on the date format configuration can be found in the documentation section.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab