Hi
I have a very strange date problem which I can't make sense of. I have an entry in my database for 28/08/2007. I build an SQL statement based on a date entered by the user in the form which checks whether there is an entry that has a date <= the date specified. I do this by substituting the Command on the relevant data adapter and checking the DOM value using selectSingleNode. When I select a date of 28/08/2007 - it behaves correctly and returns the ID of the row - good. If I enter the 27/08/2007 it behaves correctly and doesn't find a row - good. This works for 29th, 30th and 31st August too - but as soon as I enter 01/09/2007 the query doesn't return a row when it should because 28/08/2007 <= 01/09/2007?
I don't get why it is behaving like this. Could it be a bug related to conversion to British date format? Please help.
I have converted my date into a vbdate and the SQL is valid.
Thanks & regards. Stanton.