Util.Date

Top  Previous  Next

 

Syntax

function Util.Date(): datetime

 

Alternative Names

ibec_Date

 

Description

Gets the current date, with an empty time part.

 

As the datetime data type is basically a float value, you need to use typed variables to properly display its value in the debugger.

 

The Return Value is todays date.

 

See Also

Util.Now
Util.Time

 

Example

execute UDSBlock

as

declare DValue2 date;       /* strong typed */

declare DTValue2 timestamp; /* strong typed */

declare TValue2 time;       /* strong typed */

begin

  DValue = Util.Date();

  DValue2 = Util.Date();

  

  DTValue = Util.Now();

  DTValue2 = Util.Now();

  

  TValue = Util.Time();

  TValue2 = Util.Time();

end