I want to store dates as numbers in a table. I know how to do that but I don\'t know how to go back. How can I cast a long variable to ToDateTime.
DateTime n
From long to DateTime: new DateTime(long ticks)
new DateTime(long ticks)
From DateTime to long: DateTime.Ticks
DateTime.Ticks