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 |
|
scven
Starting Member
5 Posts |
Posted - 2007-05-22 : 04:46:49
|
| I have got a table with a date column in format "dd/mm/yyyy". Currently a varchar.How do i convert this column to a datetime |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-05-22 : 04:47:54
|
[code]convert(datetime, @date_col, 103)[/code] KH |
 |
|
|
scven
Starting Member
5 Posts |
Posted - 2007-05-22 : 04:53:59
|
| Thanks |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-05-22 : 05:10:40
|
Always use proper datatype DATETIME to store dates and let front end application do the formation MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|