views:

23

answers:

1

I am using the DateTime.ToFileTime and FromFileTime methods to store and retrieve timestamps in a database. The mininum windows file time is midnight, Jan 1, 1601. Is there a constant similar to DateTime.MinValue, that describes this value?

+4  A: 

No, but it is simple to create your own:

    public static readonly DateTime MinFileTime = DateTime.FromFileTimeUtc(0);
Hans Passant
ah yes,of course ;-)
Dabblernl