Consultor Eletrônico



Kbase P61992: Why after assigning to a date variable the TODAY FUNCTION it
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/19/2004
Status: Unverified

SYMPTOM(s):

Why after assigning to a date variable the TODAY FUNCTION it returns today's date

CAUSE:

Why if you try the following:

def var mydate as date.
assign mydate = today.
display mydate.

It returns today's date

FIX:

TODAY Function always returns the system date.

In way to check you can do the following:

DISPLAY TODAY will return your system date (generally today).
DISPLAY TODAY + 1 will return the system date + 1 day (probably tomorrow).
Display TODAY - 1 will return the system date - 1 day (possibly yesterday).

Please refer to documentation.