Click here to Skip to main content
15,917,636 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to Get date dd/mm/yyyy from Sql server using c#
Posted
Comments
George Jonsson 10-Jul-14 7:07am    
Could you please add more information about what you what you want to do.

Convert.ToDateTime(Lic_date).ToString("dd-MMM-yyyy");

here Lic_Date is the database field name.
 
Share this answer
 
v2
Comments
CHill60 10-Jul-14 7:41am    
Close - but the OP wanted it in the format produced by .ToString("dd/MM/yyyy");
Pravuprasad 10-Jul-14 8:03am    
yeah ...
Hi,

Use below syntax in SQL.

SQL
Select Convert(varchar(10),getdate(),103)
 
Share this answer
 

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