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 |
|
sanjay5219
Posting Yak Master
240 Posts |
Posted - 2009-10-30 : 11:46:13
|
| Hi All,I have these values in Database of date & time which i am getting from Getdate(), now i have to convert this in below formatCurrent Value2009-10-30 11:10:12.4672009-10-30 11:10:12.4672009-10-30 11:10:12.450Should be Display11:10 PM11:10 PM11:10 PMplease help me |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2009-10-30 : 12:25:39
|
| select substring(convert(varchar(30),getdate(),100),13,5)+' '+right(convert(varchar(30),getdate(),100),2)JimEveryday I learn something that somebody else already knew |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-10-31 : 03:04:59
|
| If you use front end application, do formation there. Otherwiseselect stuff(right(convert(varchar(30),getdate(),0),7),6,0,' ')MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|