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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -