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 |
|
samsun125
Yak Posting Veteran
63 Posts |
Posted - 2009-09-21 : 03:27:49
|
| hi all,in my table column value is 2009-09-21 03:10:00.000 AM.but i want to display 09/19/2009 03:10:45 AMFOR TO GET DATE WHAT I AM DOING IS CONVERT(varchar, dbo.TBLNAME.OrderedDt, 101) AND HOW TO GET TIME WITH THISHOW TO DO THAT RegardsRama |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-09-21 : 03:32:35
|
can you format the datetime in your front end application ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
samsun125
Yak Posting Veteran
63 Posts |
Posted - 2009-09-21 : 03:49:47
|
| I got answer from google select CONVERT(CHAR(8),getdate(),8) RegardsRama |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-09-22 : 03:10:28
|
quote: Originally posted by samsun125 I got answer from google select CONVERT(CHAR(8),getdate(),8) RegardsRama
Thats different from what you expect. Isn't it?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|