GETDATE

Description

This function returns the last day of the month containing a specified date, with an optional offset. (EOMONTH in Transact-SQL).

Sample Source Pattern

Syntax

GETDATE() 

Examples

Code:

IN -> SqlServer_01.sql
SELECT GETDATE() AS DATE;

Result:

DATE                   |
-----------------------+
2022-05-06 09:54:42.757|

Last updated