Calendar returns wrong century

KENNEY

Well Known Member
We are having an issue with dates when they bring up the calendar assists and select a date from 2011 or greater it returns a value of 1911.

I recall that there was a place where you define a value for the system to default a century based on the value of the 2 digit year , I believe we must have 0 to 10 set to 20 and 11 to 99 set to 19. For the life of me I cannot find it.

Can anyone help.
 
I asked one of my developers, and this was his reply:

I think their default value is "10".

------------------------------

Data dictionary Item : CENTCHG
:The century change year default value is used by the date conversion routines to determine the century when converting to Julian format. The 'effective thru' date will default to the last day of the year defined in this data item.

The current default value is "20". That means it would be 1921 if we type "21" for the year.
 
See threads for Posts #75430 and #131053 for earlier discussions on data dictionary CENTCHG and DCYR. One and/or the other is the issue (but I was never clear on which one controlled what, ours have both been changed to default value of 25)
 
Thankyou
I tried changing DD CENTCHG to a value of 40 and it still
populates the keyed in date 11/01/31 1911/01/31. What am I missing.
Michael Kenney
IT Services
University of Windsor
(519)253-3000 ext 2754



From:
custhe <[email protected]>
To:
[email protected]
Date:
02/19/2009 03:04 PM
Subject:
Re: Calendar returns wrong century
Sent by:
[email protected]



See threads for Posts #75430 and #131053 for earlier discussions on data
dictionary CENTCHG and DCYR. One and/or the other is the issue (but I was
never clear on which one controlled what, ours have both been changed to
default value of 25)
Curtis Heller XE Update 3 / SP17.1 / SQL / Win2000 / Citrix
 
Hi Michael,

#1. Change the default value accordingly too for DCYR - see Curtis's reply to your issue.

#2. Changes will take effect only that workstation (if it will at all), where you made these DD changes on. On the other clients / terminal servers / enterprise server will remain the Installed or Just In Time installed previous value.

Solving this scenario:
a.) Delete the well know 6 spec file (advised on Fat Clients)
...OR...
b.) Build full package(s) and deploy them (advised on servers)

Hope, this will solve your issue.

Regards,

Zoltán
 
I'm not sure whether it is relevant or not...I was having the same issue while getting O/P in CSV. I did some research and here is my remedy:

Control Panel->Region->Short date format dd/mm/yy
Advanced-> Data tab-> "When entered short date" field-> select your Year Range.

In my case it was set to 1940-2039. So 30/12/40 was getting printed 30-12-1940.
I changed it to 2000-2099 (it takes 99 years range). Now it works fine.
 
Back
Top