I have been working on COBOL systems for quite a while now. Currently and for most of my career, we mostly always use DB2 compatible dates ("CCYY-MM-DD").
Pre-Y2k a lot of dates were created with:
ACCEPT WS-DATE FROM DATE.
The above WS-DATE was in YYMMDD format, which is why there was a Y2K issue and needed to be resolved with windowing code. However, windowing code wouldn't work for somebody that was over 100 years old...
Doing a little research there is also (which I have never used since we just use DB2 and date parameter input files for CCYYMMDD dates):
ACCEPT WS-CENTURY-DATE FROM CENTURY-DATE.
This date is in CCYYMMDD format. According to google, the epoch for this date is January 1st, 1601.
Pre-Y2k a lot of dates were created with:
ACCEPT WS-DATE FROM DATE.
The above WS-DATE was in YYMMDD format, which is why there was a Y2K issue and needed to be resolved with windowing code. However, windowing code wouldn't work for somebody that was over 100 years old...
Doing a little research there is also (which I have never used since we just use DB2 and date parameter input files for CCYYMMDD dates):
ACCEPT WS-CENTURY-DATE FROM CENTURY-DATE.
This date is in CCYYMMDD format. According to google, the epoch for this date is January 1st, 1601.