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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-01-04 : 09:31:55
|
| Sivakumar writes "Hi,I want to Customize Time format when I do Sql Query. Like, HH:MM:SS AMPM, AMPM MM:HH:SS, Etc. Is that possible? If so, Kindly let me know how?. Thanksshiva" |
|
|
izaltsman
A custom title
1139 Posts |
Posted - 2002-01-04 : 10:04:24
|
| CONVERT function gives you some limited formatting capabilities on datetime fields... If none of the predefined formats meet your needs, you can use CONVERT in conjunction with SUBSTRING and/or REPLACE functions to piece together the time string the way you want it... Personally, I'd prefer to do this on the client side, rather than in SQL.Edited by - izaltsman on 01/04/2002 10:04:57 |
 |
|
|
|
|
|