Last active
August 29, 2015 14:01
-
-
Save jz3lada/cad973bfd7e3e19aafb4 to your computer and use it in GitHub Desktop.
Quitar/Agregar a un fecha una cantidad de días/meses/años especifica
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
for more info: | |
http://msdn.microsoft.com/es-es/library/ms186819.aspx | |
*/ | |
DECLARE @Date DATETIME | |
SET @Date=Getdate() | |
DATEADD(DAY,-1,@Date) | |
DATEADD(YEAR,2,@Date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment