4D v14

CURDATE

Home

 
4D v14
CURDATE

CURDATE  


 

 

Command CURDATECURDATE ( )

The CURDATE function returns the current date.

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 (CURDATE());
 
    SELECT *
    FROM INVOICES
    INTO :aDate;
 End SQL
  `the aDate array will return the INSERT command execution date and time.

 
PROPERTIES 

Product: 4D
Theme: Functions

 
SEE ALSO 

CURRENT_DATE
CURTIME

 
ARTICLE USAGE

4D SQL Reference ( 4D v11 SQL Release 4 )
4D SQL Reference ( 4D v14)
4D SQL Reference ( 4D v12.1)
4D SQL Reference ( 4D v13.4)
4D SQL Reference ( 4D v14 R2)
4D SQL Reference ( 4D v14 R3)
4D SQL Reference ( 4D v14 R4)