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.
Unfortunately, activation email could not send to your email. Please try again.

Date time Picker Show the time only

Thread ID:

Created:

Updated:

Platform:

Replies:

72722 Apr 2,2008 02:42 AM Apr 10,2008 07:58 AM Windows Forms 1
loading
Tags: Tools
apwickrama
Asked On April 2, 2008 02:42 AM

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



SubhaSheela R [Syncfusion]
Replied On April 10, 2008 07:58 AM

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






CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;