Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
khasim76
Starting Member
35 Posts |
Posted - 2010-05-04 : 16:06:47
|
| can somebody please convert this string to time. I have this timestamp in my database. i need to put a default timestamp which is in this string.'9999-12-31 00:00:00.000'RegardsKhasim Shaik |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-05-07 : 04:03:55
|
| Do you want to truncate time part when storing dates?MadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2010-05-07 : 04:37:11
|
CAST('9999-12-31 00:00:00' AS TIME) N 56°04'39.26"E 12°55'05.63" |
 |
|
|
vaibhavktiwari83
Aged Yak Warrior
843 Posts |
Posted - 2010-05-07 : 05:13:12
|
| If you want time part from this string then useSELECT CONVERT(VARCHAR(12), CONVERT(DATETIME, '9999-12-31 00:00:00'), 108)Vaibhav TTo walk FAST walk ALONE To walk FAR walk TOGETHER |
 |
|
|
|
|
|