I am a novice SQL user and am trying to figure out how I convert a date time field to date only.
Here is my query:
Select ed.procedurecode, ed.encounterid, rf.submissiondate
from encounterdetail as ed
join receivedfile as rf on ed.submissiondatekey=rf.submissiondatekey
where rf.submissiondate between '2020-01-01' and '2022-12-31' --This field is a date time field which I am trying to convert to a date so I can find all values between these dates**
and `rf.statustypeid = '1'`
The query will not pull the dates between since I am not including the hours, min,sec