Rex Swain's
MMDDYY2B and B2MMDDYY Utilities

Last updated 18 March 2000

The REXX program MMDDYY2B.REX converts MM/DD/YY dates to the REXX "Base" date format -- the number of days between the specified date and the "base" date (01 January 0001).

The program B2MMDDYY.REX converts Base format dates to MM/DD/YY format.

For example:

These utilities are helpful when using a REXX implementation that do not have a built-in dateconv() function.

Many thanks to Peter Baum for his excellent set of date algorithms.


You are visitor [Odometer] since 19 July 1999

Copyright © 1999-2000 Rex Swain
E-mail rex@rexswain.com, Web http://www.rexswain.com
Permission granted to distribute unmodified copies