Skip to content

Instantly share code, notes, and snippets.

@dougludlow
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save dougludlow/7b0854e8bb9502b71be2 to your computer and use it in GitHub Desktop.

Select an option

Save dougludlow/7b0854e8bb9502b71be2 to your computer and use it in GitHub Desktop.
Datestamp for SSIS Expression
REPLACE(REPLACE(REPLACE(SUBSTRING((DT_STR, 30, 1252)GETDATE(), 1, 19 ) , "-", ""), " ", ""), ":", "")
@dougludlow

Copy link
Copy Markdown
Author

This will evaluate to the equivalent of 20140508111202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment