Progress
Programming
Handbook


Date Formats

The default format for a date field or variable is“99/99/99”. Here is the syntax for specifying a date format.

9_/9_/9_ | 9_-9_-9_ | 9_.9_.9_ | 999999 | 99999999 

Progress determines where to put the month, day, and year values based on any Date Format (–d) startup parameter you may have used. That startup parameter lets you specify a date format for your application. The default format is mm/dd/yy. Table 17–5 shows some examples of how Progress displays a date value using different formats. When you want the user to enter a date in an application, it is best to use the default date display format.

Table 17–5: Date Display Format Examples 
Format
Value
Display
99/99/99
3/10/1990
03/10/90
99/99/9999
3/10/2090
03/10/2090
99–99–99
3/10/1990
03–10–90
99–99–99
3/10/2090
???????? (1)
999999
3/10/1990
031090
999999
03/10/90
031090
99999999
03/10/1990
03101990
  1. In this example, the value of 3/10/2090 is too large to fit into the display format. The year part of the display format is “99", while the value being displayed is 2090, which requires a year format of “9999".


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095