What is the format of date and time?

I was wondering if anyone knows this time format:

  • a value of 635872032000000000 represents 01.Jan 2016.
  • a value of 636502752000000000 represents December 31, 2017.

I googled the value and found that sharepoint accepts this as a parameter too.

Does anyone know the format, how to use it, or where is it?

+6
source share
1 answer

These dates are presented in ticks:

https://msdn.microsoft.com/en-us/library/z2xf7zzk(v=vs.110).aspx

Pliers Type: System.Int64

Date and time, expressed as 100-nanosecond intervals, from January 1, 0001, at 00: 00: 00.000 in the Gregorian calendar.

eg. C # code

  long value = 635872032000000000L;

  DateTime result = new DateTime(value);

  Console.Write(result);
+12

All Articles