I have this date format in my view (table) : 2017-03-10 13:45:16.567
I am trying to get today only in my view. I have tried the following:
SELECT TOP (100) PERCENT DateCompleted
FROM dbo.tblSuperDateChecker
WHERE (DateCompleted = RTRIM(CONVERT(char(10), GETDATE(), 101)))
SELECT TOP (100) PERCENT DateCompleted
FROM dbo.tblSerialMasterPending
WHERE (DateCompleted = CONVERT(Varchar(8), GETDATE(), 112))
I have piece of data that should be showing: (here is date filter removed). The top line should display because today is the 10th
2017-03-10 13:45:16.567
2017-03-09 13:45:13.550
2017-03-09 13:45:10.540
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
This award recognizes a member of Experts Exchange who has made outstanding contributions to the community within their first year as an expert. The Rookie of the Year is awarded to a new expert who has the highest number of quality contributions.