Re: ToUnixTime!
I would think that this
dateTime.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
would be equivalent to what you've posted, MrPaul, but when I run the code side by side I get drastically different values. I don't have time to investigate it now so if someone could sort it out, I am curious to know why.