S
SpookiePower
I would like to get the records from my table, from
01.01.2007 until today's date. What I mean is, that
the date today is January 3, so I want to get the records
from January 1 2007 until January 3 2007.
My code looks like this -
SELECT *
FROM TReport
WHERE Date BETWEEN '01-01-2007' AND 'dateToday-2007'
I don't know how to take out only the date (without the year)
from a date field like this (03-01-2008 06:20:00)
date(daReportCreated) returns 03-01-2008.
Can someone help me ?
01.01.2007 until today's date. What I mean is, that
the date today is January 3, so I want to get the records
from January 1 2007 until January 3 2007.
My code looks like this -
SELECT *
FROM TReport
WHERE Date BETWEEN '01-01-2007' AND 'dateToday-2007'
I don't know how to take out only the date (without the year)
from a date field like this (03-01-2008 06:20:00)
date(daReportCreated) returns 03-01-2008.
Can someone help me ?