http://blogs.msdn.com/brada/archive/2004/03/20/93332.aspx

how to get epoch time in .Net