I am brainstorming here, but I think you can get the ticks via a TimeSpan
object from your DateTime struct to a struct from DateTime.Min
TimeSpan ts = MyDateTime - DateTime.MinValue;
You can then do a comparison to two dates in pure math, for example:
TimeSpan ts = MyDateTime - DateTime.MinValue;
TimeSpan ts2 = SecondDateTime - DateTime.MinValue;
To use math, you just need a common zero value to start with, which
DateTime.MinValue supplies.
What do you want to do with the date/time you are working with? Knowing this
might help me lead you to other ideas.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#
or just read it:
http://feeds.feedburner.com/GregoryBeamer
********************************************
| Think outside the box! |
********************************************