Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Server date literal

--DateTime
SELECT {ts'2015-09-20 12:30:00'}
--Time (however this comes with "today"-time)
SELECT {t'12:30:00'}
--Date
SELECT {d'2015-09-20'}
GO
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #SQL #Server #date #literal
ADD COMMENT
Topic
Name
1+1 =