Good day! I have a problem about filtering string date in date range using variable. Here's my sample query that didn't work:
Select * from table_name where datee >= '" & result & "' and datee1 <= '" & result1 & "';
This code displays same date , 2012-12-31 and 2012-12-31.. What I want is on the greater than equal will display is 2012-12-01 and for less than or equal to is 2012-12-31.. Here's my code for date range:
Dim datee, datee1, result, result1 as string
Dim dateTime As Date
Dim dTime As Date
dateTime = Date.Parse(datee)
dTime = Date.Parse(datee1)
result = dateTime.ToString("yyyy-MM-dd")
result1 = dTime.ToString("yyyy-MM-dd")