Command: GetDate

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: GetDate();

 

You can use this command to get the current data in yyyy-MM-dd format.

Example:

@STORE1 = GETDATE();

IF(@STORE1 > '2019-31-12')

BEGIN

     (statement)

END
 

NB: Cannot be used as input to a macro command – only designed for use with the conditional commands