Click to See Complete Forum and Search --> : SQL data type conversion


li0000
October 17th, 2005, 07:02 PM
Hi,

I need to convert the a string into a TimeStamp data type. How can I do it?

Like:

String = "2005-09-02 00:00:00"

into

TimeStamp

Thanks

erickwidya
October 17th, 2005, 10:27 PM
timestamp data type is represent in datetime type?

is this?
SELECT CONVERT( datetime, '2005-09-02 00:00:00')

li0000
October 18th, 2005, 12:02 PM
Thank you very much for reply. I did not your code run.

Bye