forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2.2 KiB
2.2 KiB
current_date
This function is used to return the current date, in the yyyy-mm-dd format.
Similar function: getdate. The getdate function is used to return the current system time, in the yyyy-mm-dd hh:mi:ss format.
Syntax
current_date()
Parameters
None
Return Values
The return value is of the DATE type, in the yyyy-mm-dd format.
Example Code
The value 2023-08-16 is returned.
select current_date();
Parent topic: Date Functions