Hello,
I am trying to write a query that selects students that enrolled between a two dates:
select firstname, lastname
from students
where startdate >= 10/1/2007
and startdate <= 09/30/2008
But this is not working for me because there is something I should be doing with the dates that I haven't done.
I also want to have displayed a 10/1/2007 date when the date is less than 10/1/2007 - I understand that this code will be in the html part - <cfif startdate lt 10/01/2007 .....> But this did not work either because the date.
Will really appreciate any help/advise.
Thanks!
I am trying to write a query that selects students that enrolled between a two dates:
select firstname, lastname
from students
where startdate >= 10/1/2007
and startdate <= 09/30/2008
But this is not working for me because there is something I should be doing with the dates that I haven't done.
I also want to have displayed a 10/1/2007 date when the date is less than 10/1/2007 - I understand that this code will be in the html part - <cfif startdate lt 10/01/2007 .....> But this did not work either because the date.
Will really appreciate any help/advise.
Thanks!