Convert DateTime to Ticks