How can I compare 2 date fields, one coming from an oracle table another from VB text box. I need to format them somehow so I can compare them but have no clue how.
txtDate = Format(txtDate.Text, "mm/dd/yyyy"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Select * from table where date_field > '" & txtDate & "'
I need to format date_field to the same format as txtDate. Anyone know how I can do this?
Something like
Select * from table where (date_field, 'mm/dd/yyyy') > '" & txtDate & "';
Anyone know the correct syntax?
txtDate = Format(txtDate.Text, "mm/dd/yyyy"
Select * from table where date_field > '" & txtDate & "'
I need to format date_field to the same format as txtDate. Anyone know how I can do this?
Something like
Select * from table where (date_field, 'mm/dd/yyyy') > '" & txtDate & "';
Anyone know the correct syntax?