4D v13.4

CURRENT_DATE

Home

 
4D v13.4
CURRENT_DATE

CURRENT_DATE  


 

 

Command CURRENT_DATECURRENT_DATE ( )

The CURRENT_DATE function returns the current date in local time.

Example  

This example creates a table of invoices and inserts the current date into the INV_DATE column:

 ARRAY STRING(30;aDate;0)
 Begin SQL
    CREATE TABLE INVOICES
    (INV_DATE VARCHAR(40));
 
    INSERT INTO INVOICES
    (INV_DATE)
    VALUES (CURRENT_DATE());
 
    SELECT *
    FROM INVOICES
    INTO :aDate;
 End SQL
  `the aDate array will return the INSERT command execution date and time.

 
PROPERTIES 

Product: 4D
Theme: Functions

 
INDEX

Alphabetical list of commands

 
SEE ALSO 

CURRENT_TIME
CURRENT_TIMESTAMP