Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want date function which gives me only date not time..
Posted

 
Share this answer
 
Comments
Maciej Los 24-Sep-13 15:57pm    
+5!
 
Share this answer
 
v2
Comments
Maciej Los 24-Sep-13 15:56pm    
+5!
gvprabu 25-Sep-13 3:37am    
thank you...
Read my Blog :[User Define Function (UDF)]
 
Share this answer
 
Simplest way is using a convert function along with style. Try this query.

select CONVERT(date,getdate(),102),GETDATE()
 
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