I have the following partial sql statement that I'm trying to execute from vb.net code:
Dim currdate as string = date.now.tostring('MM/dd/y
yyy")
select prm.datefrom
from prmmain prm
where to_char(prm.datefrom,'MM/D
D/YYYY') >= '" + currDate + "' "
prm.datefrom is a datetime column.
This doesn't work because now I'm comparing strings instead of dates. Is there a way for me to convert these back to dates or somehow keep them as dates to begin with?
Start Free Trial