Mark wrote:
> I'd like to compare two datetime values in milliseconds. The
> datetime.compare method appears to show only seconds. Milliseconds of a
> datetime are available as a property of each datetime, but I am assuming
> there is an easier way than comparing the milliseconds, seconds, minutes,
> hours, days, etc, individually to generate the difference.
DateTime Compare returns negative, zero, positive.
If you simply subtract the two DateTime then you get a
TimeSpan where you can use the TotalMilliSeconds property.
Arne
|