We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Date time Picker Show the time only

I want enter the user time only, in hh:mm format. I want to use updown buttons also.

What would be the best control for this..?

DateTimePicker
NumericUpDown



1 Reply

SR SubhaSheela R Syncfusion Team April 10, 2008 11:58 AM UTC

Hi Apwickrama,

Thanks for your interest in Syncfusion products.

You can use DateTimePickerAdv for enter the user time since it is designed especially for entering Date and Time. You can customize it to allow the user to enter the time in any format. Below is the code snippet:


this.dateTimePickerAdv1.Format = DateTimePickerFormat.Custom;
this.dateTimePickerAdv1.CustomFormat = "hh:mm";


Here is the sample:

'>http://websamples.syncfusion.com/samples/Tools.Windows/F72722/main.htm">
http://websamples.syncfusion.com/samples/Tools.Windows/F72722/main.htm

Please let me know if it helps.

Regards,
Subhasheela R






Loader.
Live Chat Icon For mobile
Up arrow icon