views:

768

answers:

1

Hi

I make any File in PC, and I transfer him to PPC (Windows mobile)

How I can get the Modified date of this file ?

(I need it in Windows mobile)

thank's in advance

+6  A: 

FileInfo.LastWriteTime and FileInfo.LastWriteTimeUTC should register this information.

Steve Guidi
You can also use File.GetLastWriteTime and File.GetLastWriteTimeUTC
Jeff Yates
thank's for the answer, but it give me always the today date and time, whay ?
Gold
If you are reading this attribute from the file that was just created (the copy), it will have today's date/time since the copy is considered a modification. However, the source file shouldn't exhibit this behavior.Perhaps you are looking for another file attribute?
Steve Guidi