GRIDPLUS2 - Date Calculation Command
Home Reference Manpage Examples Download License Contact

Usinr the GRIDPLUS gpdate Command

The GRIDPLUS gpdate command returns a date value (in "-dateformat") that is a specified increment from a specified date.

Syntax:-

gridplus::gpdate ?action? ?date?

ActionValue
@date (default).
+daysdate + days.
-daysdate - days.
>monthsdate + months.
<monthsdate - months.

The default date is the current date. If a date is specified it must be in the format specified by -dateformat.

Examples

Note: These examples assume that the current date is 31st December 2011 and that the -dateformat is "us".

CommandValue
gpdate12/31/2011
gpdate @12/31/2011
gpdate +701/07/2012
gpdate >1212/31/2012
gpdate -212/29/2011
gpdate <111/30/2011
gpdate +14 01/14/201201/28/2012
gpdate <24 01/14/201201/14/2010


Copyright © 2011 Adrian Davis.