DECLARE @UTC BIGINT
SET @UTC = 1348203320997
SELECT DATEADD(MILLISECOND, @UTC % 1000, DATEADD(SECOND, @UTC / 1000, '19700101'))
More Related Contents:
- Sql Server string to date conversion
- How to get Time from DateTime format in SQL?
- SQL Query to find the last day of the month
- How do I fix the error ‘Named Pipes Provider, error 40 – Could not open a connection to’ SQL Server’?
- SQL query to select dates between two dates
- Natural (human alpha-numeric) sort in Microsoft SQL 2005
- How much size “Null” value takes in SQL Server
- SQL Server Pivot Table with multiple column aggregates
- How to get first and last day of previous month (with timestamp) in SQL Server
- Why is it considered bad practice to use cursors in SQL Server?
- How to remove the time portion of a datetime value (SQL Server)?
- CAST and IsNumeric
- Is it possible to force row level locking in SQL Server?
- SQL Server – Dynamic PIVOT Table – SQL Injection
- SQL Server, convert a named instance to default instance?
- SQL Server GUID sort algorithm. Why?
- WHERE clause on SQL Server “Text” data type
- SQL Server error on update command – “A severe error occurred on the current command”
- Unable to begin a distributed transaction
- Comparing dates stored as varchar
- Add default value of datetime field in SQL Server to a timestamp
- SQL server schema and default schema
- SQL Server ON DELETE Trigger
- How to create the linked server for SQL Server 2008 where we have the database from 2000 and 2005
- FOR XML PATH(”): Escaping “special” characters
- Convert a string with ‘YYYYMMDDHHMMSS’ format to datetime
- Difference between database and schema
- What are row, page and table locks? And when they are acquired?
- Cross Domain SQL Server Logins Using Windows Authentication
- How does SQL Server decide format for implicit datetime conversion?