| 4D v20CURDATE | ||||||||||||||
| 
 | 
    4D v20
 CURDATE 
         | |||||||||||||
|  | ||
The CURDATE function returns the current date.
This example creates a table of invoices and inserts the current date into the INV_DATE column:
 ARRAY TEXT(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.
	Product:  4D
	Theme:  Functions
	
        
        
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D SQL Reference ( 4D v20)
	
	
 Add a comment
Add a comment