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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

question on dateTimePickerAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

66496 Jul 30,2007 01:47 PM UTC Aug 1,2007 03:50 PM UTC WinForms 3
loading
Tags: Tools
Wen Jiang
Asked On July 30, 2007 01:47 PM UTC

Syncfusion 4.4

I want the date format like mm/dd/yyyy, and the user can manually enter a date or choose a date from the control.

The following doesn't give me the effect:


this.dateTimePickerAdv1.IsNullDate = true;
this.dateTimePickerAdv1.NullModeKeyReset = Syncfusion.Windows.Forms.Tools.NullModeKeyReset.NumericKeys;
this.dateTimePickerAdv1.NullString = " / /";
this.dateTimePickerAdv1.CustomFormat = "dd/MM/yyyy";
this.dateTimePickerAdv1.AutoForwarding = true;

Thanks a lot,
Wen

J.Nagarajan [Syncfusion]
Replied On July 31, 2007 10:46 PM UTC

Hi Wen,

Thanks for using Syncfusion product.

You can do this by setting the Format property to Custom and set the CustomFormat as "dd.MM.yyyy".

Here is the code snippet:

this.dateTimePickerAdv1.Format = DateTimePickerFormat.Custom;
this.dateTimePickerAdv1.CustomFormat = "dd.MM.yyyy";
this.dateTimePickerAdv1.Value = DateTime.Now;

Please let me know if this helps you.


Regards,
Nagaraj

J.Nagarajan [Syncfusion]
Replied On July 31, 2007 10:48 PM UTC

Hi Wen,

Thanks for using Syncfusion product.

You can do this by setting the Format property to Custom and set the CustomFormat as "MM/dd/yyy".

Here is the code snippet:

this.dateTimePickerAdv1.Format = DateTimePickerFormat.Custom;
this.dateTimePickerAdv1.CustomFormat = "MM/dd/yyy";
this.dateTimePickerAdv1.Value = DateTime.Now;

Please let me know if this helps you.


Regards,
Nagaraj

Wen Jiang
Replied On August 1, 2007 03:50 PM UTC

Thank you Nagarajan. Your reply is helpful.

Wen

>Hi Wen,

Thanks for using Syncfusion product.

You can do this by setting the Format property to Custom and set the CustomFormat as "MM/dd/yyy".

Here is the code snippet:

this.dateTimePickerAdv1.Format = DateTimePickerFormat.Custom;
this.dateTimePickerAdv1.CustomFormat = "MM/dd/yyy";
this.dateTimePickerAdv1.Value = DateTime.Now;

Please let me know if this helps you.


Regards,
Nagaraj

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.

Warning Icon 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.Close Icon

;