Snippets has posted 5883 posts at DZone. View Full User Profile
public static double ToDouble(DateTime what)
return BitConverter.ToDouble(BitConverter.GetBytes(what.Ticks), 0);
public static DateTime ToDateTime(double what)
return new DateTime(BitConverter.ToInt64(BitConverter.GetBytes(what), 0));
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...