Platinum Partner

DateTime To Double And Vice Versa


 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));
 }
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}