i want to get the date part of a date time variable from the query itself .is there any function for that.
there is a date time variable in the table let us say abc_time it's value is getdate
so if we are retriving that value by
select abc_time from table
it will return as 2002-05-03 12:02:28.000
i want the date part of that variable 2002-05-03
i want this for comparing this value with a date that user is entering through text box
here user is entering date only
can anybody tell me