Click here to Skip to main content
15,898,987 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii,i have a requirement such that i want to compare the modify_date column in table with passing date parameter at runtime,but modify_date column is with date & time so am not getting expected result is there any way only the date should be available in modify_date column & drop time ...............is these possible pls help me
thanks in advance;;;;;;;;;
Posted
Updated 2-Nov-11 0:04am
v2
Comments
Amir Mahfoozi 2-Nov-11 6:58am    
Please provide some piece of code, and we will try to improve it.

Check this:

SQL
select cast(GETDATE() as varchar(12));
 
Share this answer
 
v3
u can get only date from datetime as:
SQL
SELECT CONVERT(VARCHAR(10),GETDATE(),111)

for more datetime format conversions refer:
http://msdn.microsoft.com/en-us/library/ms187928.aspx[^]
 
Share this answer
 
v2
The above answers are sufficient.
 
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