I am using MS SQL Server 2008,
and in a table I have column idate as date but in the integer format.
But in the query I want that in the date format.
Is it possible to convert integer date into proper datetime format?
I am using MS SQL Server 2008, and in a table I have column
Share
You can’t convert an integer value straight to a date but you can first it to a datetime then to a date type
select cast(40835 as datetime)and then convert to a date (SQL 2008)
select cast(cast(40835 as datetime) as date)cheers