Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to convert date format as eg: feb 27,2013

for feb 27 we use --> char(6),sdate

same for feb 27 ,2013 we use-->?
Posted
Comments
Devang Vaja 18-Feb-13 6:24am    
use char(11) for that

If want to get date from SQL Server in custom format, see these:
CAST and CONVERT[^]
DATE and Time functions[^]

But, i think, you need: SET DATEFORMAT[^] instruction.
 
Share this answer
 
C#
string date = DateTime.Now.ToString("MMM dd, yyyy");
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900