By using following query we will get desired results
SELECT * FROM myTable WHERE convert(nvarchar,dateColumn,112)>=convert(nvarchar,fromDate,112)AND
convert(nvarchar,dateColumn,112)<=convert(nvarchar,toDate,112)
To Get Accurate Records between two dates from the Table of MS SQL SERVER.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SQLSupabase in Practice: Build and Ship Production Apps on Postgres, from First Table to LaunchDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.