Groups | Blog | Home
all groups > sql server misc > november 2003 >

sql server misc : Convert mysql integer to SQL server datetime



Ste
11/27/2003 12:10:20 PM
Hi,
I have a mysql dump with a table with this field:

"hdstart" integer

which contains integer like 1042758000 1028152800 etc etc

How can I convert it to a SQL Server DateTime field?

Thank in advance and sorry for my bad english...

Ste

John Bell
11/28/2003 3:32:27 PM
Hi

I don't know how mysql stores it's dates, but if this is an offset from a
given date you could always use the dateadd function.

John

[quoted text, click to view]

AddThis Social Bookmark Button