View Issue Details

IDProjectCategoryView StatusLast Update
0006349JEDI VCL00 JVCL Componentspublic2015-09-14 11:46
ReporterralfiiiAssigned To 
Status confirmedResolutionopen 
Product Version3.47 
Target VersionFixed in Version 
Summary0006349: TJvDateEdit can't handle years in past when 2-digit years are used
DescriptionWhen you configure Windows to use 2-digit years (in the control panel), then TJvDateEdit also shows the year with 2 digits.
If a user now wants to enter e.g. a birthday, and enters "30.12.15" (for 30.12.1915), then the JvDateEdit interprets that as 30.12.2015.
That's no problem, it's easy to correct that date with
  if datDOB.Date>now then
       DecodeDate(datDOB.Date, y,m,d);
However, If I then query the date, it's still 2015. Even worse, if the user then clicks on the calendar icon, it always folds out with 2015.
It looks as if the date was not stored internally, but if the displayed string is decoded every time anew.

TagsNo tags attached.



2014-12-04 15:02

administrator   ~0021081

Please provide the zipped sources of a sample application showing this.

2014-12-04 15:29 (1,326 bytes)


2014-12-04 15:30

reporter   ~0021085

Demo app attached. Demonstrates problem also on systems with 4-digit year setting.


2015-09-14 11:46

administrator   ~0021197

Well, yes, the date is decoded everytime from the text.
That's why I can't see how this could be solved easily

Issue History

Date Modified Username Field Change
2014-11-05 10:35 ralfiii New Issue
2014-12-04 15:02 obones Note Added: 0021081
2014-12-04 15:02 obones Status new => feedback
2014-12-04 15:29 ralfiii File Added:
2014-12-04 15:30 ralfiii Note Added: 0021085
2015-09-14 11:29 obones Status feedback => acknowledged
2015-09-14 11:46 obones Note Added: 0021197
2015-09-14 11:46 obones Status acknowledged => confirmed