Is there a constant that describes the minimum value of a Windows FileTime file in .NET?

I use the DateTime.ToFileTime and FromFileTime methods to store and retrieve timestamps in the database. The minimum window file time is midnight, January 1, 1601. Is there a constant like DateTime.MinValue that describes this value?

+3
source share
1 answer

No, but just create your own:

    public static readonly DateTime MinFileTime = DateTime.FromFileTimeUtc(0);
+9
source

Source: https://habr.com/ru/post/1730605/


All Articles