J
Jim in Arizona
I'm having difficulty figuring out how to find the date three days from
today's date.
I'm trying to use an sql select statement, like so:
"SELECT * FROM TableA " & _
"WHERE DateColumn BETWEEN " & _
BeginDate & " AND " & EndDate
I want to display records that are from three days ago to the present.
I don't know how to find the date from three days ago. Something like:
Dim EndDate as Date = Now() 'Or DateAndTime.Today
Dim BeginDate as Date = DateAndTime.Today - 3
Of course, that doesn't work.
Any Ideas?
TIA,
Jim
today's date.
I'm trying to use an sql select statement, like so:
"SELECT * FROM TableA " & _
"WHERE DateColumn BETWEEN " & _
BeginDate & " AND " & EndDate
I want to display records that are from three days ago to the present.
I don't know how to find the date from three days ago. Something like:
Dim EndDate as Date = Now() 'Or DateAndTime.Today
Dim BeginDate as Date = DateAndTime.Today - 3
Of course, that doesn't work.
Any Ideas?
TIA,
Jim