Skip to content

Instantly share code, notes, and snippets.

@dougludlow
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougludlow/7b0854e8bb9502b71be2 to your computer and use it in GitHub Desktop.
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
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