I want to do the correct way to get a date from a @parameter that contains the complete datetime, that user gets from a calendar from TFS File.
In the select
I would want to use something like CONVERT(varchar(10), @FechaHasta.Value, 120) AS DATE01
and then get the only date, throwing out the time from the parameter.
For the next step, I would want to compare it with another date in WHERE
clause, having this code :
Then, I would want to make this work on for looking for between two dates, and the last one, throwing out the time from the datetime.
Thanks.