might help:
SET dateformat dmy DECLARE @StartDate as datetime DECLARE @EndDate as datetime SET @StartDate = '01/01/2016' SET @EndDate = DATEADD(month, DATEDIFF(month, 0, getdate()), 0) your_query WHERE your_date>=@StartDate AND your_date <@EndDate
Thanks. In the end I used.... WHERE [Date entered]<=DateSerial(Year(Date()), Month(Date()) + 0, 0)
@Chalfie started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
might help: