Problem with comparing dates and times

sijcooke

Member
Joined
Nov 29, 2009
Messages
9
Programming Experience
10+
Hi All,
I have a problem trying to compare two dates in vb.net... is there a bug in .net??

Please see attached code... you can see the values in the two date variables, but the result of the if statement is going to 'else'... i thought = 0 means the two are equal???

Any help would be very much appreciated.

Best regards,

Sijcooke
 

Attachments

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,334
Location
Norway
Programming Experience
10+
Files usually have the seconds part set, probably also milliseconds, though they don't show in the friendly display string in IDE. If you do a ToString or look in Second property you should see it.
is there a bug in .net??
Of course not :)
 
Top Bottom