I have a column in my table-TimeUpdated but the data coming to this column from source is in Julian datetime format.
I found this below query to convert the Date part of julian timestam to normal timestamp -
declare @a as int = 2458228
select @a, dateadd(d,@a - 2440588,'1970-01-01')
But i can't figure out how to convert the Hour-Minute-second part. Can anybody help? Thanks in advance.
P.S. - 2458228.05929 in Julian means 19-04-2018 18:55:20 IST. Also you can refer to this site which will convert any day to Julian Datetime - http://www.onlineconversion.com/julian_date.htm