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 |
|
raysefo
Constraint Violating Yak Guru
260 Posts |
Posted - 2010-10-05 : 04:42:13
|
| Hi,I m getting DateTime from Db as follows;CONVERT (varchar(20), CreationDate, 113)And it brings me this :04 Oct 2010 17:33:29What i would like to have is,04 10 2010 17:33:29Best Regards |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
|
|
raysefo
Constraint Violating Yak Guru
260 Posts |
Posted - 2010-10-05 : 05:03:35
|
| Thanks CONVERT(CHAR(10),CreationDate,104) + SUBSTRING(CONVERT(varchar,CreationDate,0),12,8) |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-10-05 : 06:05:10
|
quote: Originally posted by raysefo Hi,I m getting DateTime from Db as follows;CONVERT (varchar(20), CreationDate, 113)And it brings me this :04 Oct 2010 17:33:29What i would like to have is,04 10 2010 17:33:29Best Regards
If you do front end application, do formation thereMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|