Section 9:95. Date Manipulation – Getting Current Date and Timestamp
CURRENT_DATE: The CURRENT_DATE function returns the current date in ‘yyyy-MM-dd’ format. The syntax for the CURRENT_DATE function is as follows CURRENT_DATE For example: SELECT CURRENT_DATE; — Returns ‘2023-03-04’ (assuming today’s date is March 4, 2023) CURRENT_TIMESTAMP: The CURRENT_TIMESTAMP function returns the current timestamp in ‘yyyy-MM-dd HH:mm:ss’ format. The syntax for the CURRENT_TIMESTAMP function is as …
Section 9:95. Date Manipulation – Getting Current Date and Timestamp Read More »