Convert DateTime to long and also the other way around March 22, 2023 by Tarik To long from DateTime: long DateTime.Ticks To DateTime from long: new DateTime(long)