c# - Some problems with GetCreationTime function -


i have jpg file date of creation: 04/29/2014

in c# when write

datetime dt = file.getcreationtime("c:\\users\\first\\desktop\\1.jpg"); 

i have dt 01/01/1601. can explain me why happen?

that means file not exist.

from documentation;

if file described in path parameter not exist, method returns 12:00 midnight, january 1, 1601 a.d. (c.e.) coordinated universal time (utc), adjusted local time.

double check path.


Comments