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 |
|
slimt_slimt
Aged Yak Warrior
746 Posts |
Posted - 2008-05-19 : 04:11:27
|
| I have in text field (nvarchar) following date dd-mm-yyyyand i would like to convert it to smalldatetime fieldin format yyyy-mm-dd.Is there any explicit way to do it?thank you |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-05-19 : 04:26:09
|
Formatting matters when showing datetime data not while inserting it.Try this:Set Dateformat DMYSelect Convert(SmallDatetime, DateCol) as DateCol from Table Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|