W
William Ryan eMVP
Gabe:
I don't think this is ever going to work unless EndTime and StartTime are
column names in the datatable. What I guess I'm having trouble with is how
can the same variable "date" have a value of '1/1/0001 6:00AM' in one part
of the equation and '1/1/0001 8:00PM' in the next when there's no
assignment? Also, just as a matter of style, I'd reconsider using Date as a
variable name...lot's of potential for trouble there. Anyway, I think after
looking at it again I see what you mean though --- never mind my first
observations. In this case, why not do a add 1899 years to your 'date'
variable.. then they'll match?
--
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
I don't think this is ever going to work unless EndTime and StartTime are
column names in the datatable. What I guess I'm having trouble with is how
can the same variable "date" have a value of '1/1/0001 6:00AM' in one part
of the equation and '1/1/0001 8:00PM' in the next when there's no
assignment? Also, just as a matter of style, I'd reconsider using Date as a
variable name...lot's of potential for trouble there. Anyway, I think after
looking at it again I see what you mean though --- never mind my first
observations. In this case, why not do a add 1899 years to your 'date'
variable.. then they'll match?
--
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/