If the environment variable $DATEFMT is set, computedate will use it as a template for the output date format. $DATEFMT should indicate the order of the date elements; the number of bytes in each element, and the character used to separate the date elements, if any. The letter 'y' indicates a year byte; the letter 'm' indicates a month byte; and the letter 'd' indicates a day-of-month byte. For example, if $DATEFMT is m/d/yy, then computed dates will be output in unpadded U.S. format (1/1/98): if it's mm/dd/yy, then single-digit month and day elements will be padded with a zero (01/01/98). Note that the year element of the date will never be output as less than 2 bytes, but if more than 2 are specified in $DATEFMT, 4 will be output: a date computed to be New Years Day, 2000, with $DATEFMT set to mm-dd-yyy, will print as 01-01-2000. Finally, $DATEFMT does not necessarily need to include all 3 date elements: mm.dd is fine; so is YYYY or simply d. The format options (-e, -u, -c and -f) take precedence over $DATEFMT.
-e print output in European format (dd.mm.yyyy).
-u print output in U.S. format (mm/dd/yyyy).
-f date_format
print output in user-defined format (see $DATEFMT above).
-t substitute today's date for the date argument.
$ computedate 980813 75 19981027
To format the date 75 days from today, in Germany:
$ computedate -e -t 75 10.04.1997Y2K NOTE: