2008-03-24, 08:01 PM
OK, so I get my date out of the database into a Date variable. I want to use that variable in a second query comparing that date to other dates in the database.
During debug, when I inspect the variable, the date format is different than the date format in the database. I think that's why the query fails...
When I worked with vb6, I just read everything as strings, and compared that way... But I know that if I use the date type I will also be able to add and subtract days and hours and time much easier than parsing the string into isolated date variables (year, month, date, etc...)
How should I be doing this?
During debug, when I inspect the variable, the date format is different than the date format in the database. I think that's why the query fails...
When I worked with vb6, I just read everything as strings, and compared that way... But I know that if I use the date type I will also be able to add and subtract days and hours and time much easier than parsing the string into isolated date variables (year, month, date, etc...)
How should I be doing this?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]