Created
January 26, 2015 16:56
-
-
Save icalderond/e7231d982033f3d64492 to your computer and use it in GitHub Desktop.
Ver formatos de fecha en SQL Server
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
declare @dob2 DATETIME=getdate() | |
select convert(varchar, @dob2, 101)--01/26/2015 | |
select convert(varchar, @dob2, 102)--2015.01.26 | |
select convert(varchar, @dob2, 103)--26/01/2015 | |
select convert(varchar, @dob2, 104)--26.01.2015 | |
select convert(varchar, @dob2, 105)--26-01-2015 | |
select convert(varchar, @dob2, 106)--26 Jan 2015 | |
select convert(varchar, @dob2, 107)--Jan 26, 2015 | |
select convert(varchar, @dob2, 108)--10:52:40 | |
select convert(varchar, @dob2, 109)--Jan 26 2015 10:52:40:380AM | |
select convert(varchar, @dob2, 110)--01-26-2015 | |
select convert(varchar, @dob2, 111)--2015/01/26 | |
select convert(varchar, @dob2, 112)--20150126 | |
select convert(varchar, @dob2, 113)--26 Jan 2015 10:52:40:380 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment