CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 DatePicker 2 Digit Year

Print topic Send  topic

Author Message
Bret

Posts: 13
Posted: 05/15/2007, 2:24 PM

I have a textbox that a user fills in with a date. Both the project and the textbox have the format set to 'mm/dd/yyyy' - but the user still types in '01/01/07' and presses the icon for the datepicker. The calendar comes up as 01/01/1907, but the user wants it to be 01/01/2007

Now there should be a way to correct that. I found a line of code in datepicker.js that did the following ->
  var centuryDigits = (last2Digits>=50)?1900:2000;  
  resultDateArray[YEAR_POS] = centuryDigits + last2Digits;  
But no matter how I altered that - same results. Any Ideas ? Am I looking in the wrong place ?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.