Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
breakup_date

breakup_date (routine)

Convert a date in the form YYMMDD or YYYYMMDD into separate variables for month, day, and year

Introduced in release: 1.0
Component: Generic
Purpose: Convert a 4-byte integer date in the form YYMMDD or YYYYMMDD into three separate variables for month, day, and a 4 digit year, respectively.

Notes: The variable next_century determines the century that a date in the form YYMMDD is converted to. When the 2 digit year, YY, is less than or equal to next_century then the year is returned as 20YY, otherwise the year is returned as 19YY. This is the inverse function to MDY_2_dt.

Results: The month, day, and year are returned as three separate integer values.

Error Conditions: No error checking is done.

Last Mod Date: 07/02/1991© 2001 TIPS, Inc.Doc Version: 5.0