Export (0) Print
Expand All

GETDATE (SSIS Expressions)

Returns the current date of the system in a DT_DBTIMESTAMP format. The GETDATE function takes no arguments.

NoteNote

The length of the return result from the GETDATE function is 29 characters.


GETDATE()

DT_DBTIMESTAMP

This example returns the year of the current date.

DATEPART("year",GETDATE())

This example returns the number of days between a date in the ModifiedDate column and the current date.

DATEDIFF("dd",ModifiedDate,GETDATE())

This example adds three months to the current date.

DATEADD("Month",3,GETDATE())
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft