I have two dates as strings as below. They are in unix time format.
1364810610810+0530 and 1364830410810
I need to convert this to SQL server datetime type with SQL Server 2008 R2 and print the values on to console to see the milliseconds as well. Can someone help me with this.
I figured that 1364830410810' string can be converted as below. But it does not print milliseconds.
declare @myDate datetime;
set @myDate = DATEADD(SECOND, 1364830410810/1000 ,'1970/1/1');
print 'Second Statement: ' + Convert(varchar(100), @myDate );