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 |
|
naveengopinathasari
Yak Posting Veteran
60 Posts |
Posted - 2011-07-11 : 08:38:05
|
| I Have a requirement where the date and Time has to displayed in the User defined format which is not support by SQL SERVER defaultsfor ExampleMMM_DD_YYYY = JAN_01_2011DD.MMM.YY = 01.JAN.11DD/MMM/YYYY = 01/JAN/2011like wise i have for Time and Number format too...this is not possible with built functions of SQL SERVERPlease suggest or any idea i can go forward.Lets unLearn |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2011-07-11 : 08:59:29
|
Replace all dots, slashes and underscores with space and try again. N 56°04'39.26"E 12°55'05.63" |
 |
|
|
Ranjit.ileni
Posting Yak Master
183 Posts |
Posted - 2011-07-11 : 09:11:58
|
| SELECT UPPER(REPLACE(CONVERT(VARCHAR(11),GETDATE(),0),' ','_')) --JUL_11_2011SELECT UPPER(REPLACE(CONVERT(VARCHAR(11),GETDATE(),13),' ','.')) --11.JUL.2011SELECT UPPER(REPLACE(CONVERT(VARCHAR(11),GETDATE(),13),' ','/')) --11/JUL/2011--Ranjit |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2011-07-11 : 09:20:38
|
| Where do you want to show formatted dates? If you use front end application, do formation thereMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|