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.
Syncfusion Feedback

Year Digit problem

Thread ID:

Created:

Updated:

Platform:

Replies:

125054 Jul 18,2016 08:45 AM UTC Dec 26,2017 06:09 AM UTC Windows Forms 9
loading
Tags: DateTimePickerAdv
Michael K
Asked On July 18, 2016 08:45 AM UTC

Hi All :

When I use vs2010 standard datatinepicker control, and the custom format set to "dd/MM/yy"

When user type the value  "16"  in (year part), the control  year value will return "2016."

However, under DateTimeAdv, when I type 16 in the same (year part), the year valve will be "1620"
How to avoid about it ?

Thanks

Michael
 

Vijayalakshmi Roopkumar [Syncfusion]
Replied On July 19, 2016 10:03 AM UTC

Hi Michael,

We were able to reproduce the issue with the DateTimePickerAdv and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 
Regards,
Vijayalakshmi V.R. 


hieudt
Replied On April 11, 2017 07:01 AM UTC

Hi,

Lately I encountered this prolem, so whether it has been fixed or not in the latest updates ?

Thanks.

Venkateshwaran Ramdoss [Syncfusion]
Replied On April 12, 2017 12:37 PM UTC

Hi Hieudt,   
   
Thank you for contacting Syncfusion Support.   
   
The reported issue with DateTimePickerAdv has been fixed in latest Syncfusion Essential Studio version v15.1.0.41. We have prepared a sample and video for your reference. Please downloaded it from the below link.   
   
Sample: DatePickerAdvSample    
   
   
Kindly check with the above solution and confirm us whether we have misunderstood your  requirement.    
   
Regards   
Venkateshwaran V.R.   


hieudt
Replied On April 13, 2017 02:56 AM UTC

Hi,

It's helped but not what I require, my datetimepicker has custom format set to "dd/MM/yyyy", so I want
. when I start edit value, current value will set null
. when I type just (day) or (day & month) it will return full value with current (month & year) or (year)
. when I type day & month & two digits year it will also return full value

Thanks.





Mallika Kannan [Syncfusion]
Replied On April 13, 2017 11:07 AM UTC

Hi Hieudt,   
   
Thank you for contacting Syncfusion Support.   
   
Query 1: My datetimepicker has custom format set to "dd/MM/yyyy", so I want. when I start edit value, current value will set null.   
   
We were unable to understand your requirement clearly. Please confirm, whether you would like to have no date selected when DateTimePickerAdv is loaded and display DateTime value user Edit on it.  
   
If so, this reported requirement can be resolved by using IsNullDate Property.    
   
Please make use the below Code example:  
   
//DateTimePicker Custom Format   
               
this.dateTimePickerAdv1.CustomFormat = "dd/MM/yyyy";   
   
//Null Value   
               
this.dateTimePickerAdv1.IsNullDate = true;   
   
Screenshot   
   
    
   
Query 2: When I type just (day) or (day & month) it will return full value with current (month & year) or (year)   
 
If this reported requirement is to display the DateTime upon user edit and have Auto Forward to next fields, when user editing on it. If so, please make use the below code snippet:  
   
//set AutoForwarding   
              
 this.dateTimePickerAdv1.AutoForwarding = true;   
               
//Edit DateTime   
               
this.dateTimePickerAdv1.NullModeKeyReset = Syncfusion.Windows.Forms.Tools.NullModeKeyReset.Any;   
               
//EnableNullKeys   
               
this.dateTimePickerAdv1.EnableNullKeys = true;   
   
Screenshot   
   
Editing Date   
   
    
  
Editing Month   
   
    
  
Figure: If date and month is set then return the full value.   
  
If problem still persist kindly share us more details about this requirement. That would be helpful for us to provide solution at the earliest.    
   
Query 3: When I type day & month & two digits year it will also return full value   
   
As per the standard behavior, it is needed for an end user to provide the number of values as defined in Custom Format. So it is mandatory to type 4 digits in this Year field.    
  
For Example   
   
In Custom Format, you have defined 4 characters to be displayed in Year field. So it is necessary for a user to provide 4 Character input “YYYY”.    
   
We have also prepared the sample and video for your reference, it can be downloaded from the below link,   
   
   
   
Kindly check the above solution and let us know if it was helpful or if we have misunderstood your requirement.    
   
Regards,   
Mallika    
 


hieudt
Replied On April 14, 2017 02:44 AM UTC

Hi,

Thanks for your reply, I have attached a sample, in this I included DateTimePicker and GGC, I want DTP behave similar like GGC
. select all when focus
. auto complete value

Thanks.

Attachment: DateTimePickerAdv_965f23e1.rar

Venkateshwaran Ramdoss [Syncfusion]
Replied On April 17, 2017 12:53 PM UTC

Hi Hieudt, 
  
Thank you for your update. 
  
At present, there is no support for this reported requirements in DateTimePickerAdv. Could you please confirm us the purpose of highlighting the DateTimePickerAdv value, when its focus is lost? And also let us know if you have any other requirements related to this scenario. So that we can analyze and provide you the prompt solution at the earliest. 
 
Regards, 
Venkateshwaran V.R. 


hieudt
Replied On April 18, 2017 01:47 AM UTC

Hi,

Thanks for your reply, Highlighting the DateTimePickerAdv value when it focused helps user quickly change to another date. Because I use format "dd/MM/yyyy" so when value is '18/04/2017', I can not change to '31/03/2017' straightway, instead I change month first and back to change day, it's slowdown user's input and sometimes cause error.

Let me know when this prolem is solved. Thanks.

Mallika Kannan [Syncfusion]
Replied On April 20, 2017 06:33 AM UTC

Hi Hieudt   
    
Thank you for contacting Syncfusion Support.    
    
A support incident has been created under your account to track the status of the reported scenario in DateTimePickerAdv.   
    
Please log on to our support website to check for further updates    
    
    
Regards,    
Mallika    


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

;