Consultor Eletrônico



Kbase 15941: 4-digit Year With -d ydm or ymd and Date Format 99/99/9999
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Verified

GOAL:

4-digit Year With -d ydm or ymd and Date Format 99/99/9999

GOAL:

How does Progress apply a the -d startup parameter to the default data format?

FIX:

When an application uses a date format of 99/99/9999, by default Progress displays this as month/day/year. For example:

10/27/1994 = October 27, 1994

When the -d startup parameter is changed to ydm (signifying that dates should be displayed in the order of year/day/month), the date above might display as:

94/27/0010

In Progress versions prior to 8.3A (or 8.2C07 on Windows NT 32 Intel) this is the default behavior. On these early versions, the -d parameter affects only the (order) in which the month, day, and year of a date are displayed. It does not affect the format.

This means that a format of 99/99/9999 used with -d ydm was interpreted to say that the month, being last, should be displayed using four digits. A similar effect happened when -d was set to ymd.

This behavior is changed beginning with Version 8.3A (and, only on the Windows NT 32 Intel platform, patch 8.2C07). On these versions, the year format is properly adjusted when -d changes the order in which month, day, and year are displayed. No matter what position the year takes in the display order, it is displayed using 4 digits.

This means that the example above would be properly displayed as:

1994/27/10