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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 DATE FORMAT

Author  Topic 

pnpsql
Posting Yak Master

246 Posts

Posted - 2011-08-31 : 03:14:03
I NEED THIS TYPE OF DATE FORMAT WHAT SHOULD I DO :
EX : 12-JUL-2011

challenge everything

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-31 : 04:10:13
you should try to do this at front end as its a presentation issue. if you dont have front end then try to use CONVERT .

http://msdn.microsoft.com/en-us/library/ms187928.aspx


Also next time please refrain from using caps when posting
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-09-05 : 05:50:32
quote:
Originally posted by pnpsql

I NEED THIS TYPE OF DATE FORMAT WHAT SHOULD I DO :
EX : 12-JUL-2011

challenge everything


All the front end applications support this format. In Denali, you have format function

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

gwilson67
Starting Member

42 Posts

Posted - 2011-09-05 : 11:32:30
convert or cast allows you to manipulate the format of a date.

Greg
http://www.freewebstore.org/tsqlcoderepository
Powerful tool for SQL Server development
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-05 : 12:59:51
quote:
Originally posted by gwilson67

convert or cast allows you to manipulate the format of a date.

Greg
http://www.freewebstore.org/tsqlcoderepository
Powerful tool for SQL Server development


which is not to be done on the db unless you dont have a way to deal it at front end

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -