Time stamp
-
Hi, guys I need a time stamp, which can remember time when the source code is compiled for the first time. So DateTime.Now is useless. How can I get it? Thank you very much. vigorous
-
Hi, guys I need a time stamp, which can remember time when the source code is compiled for the first time. So DateTime.Now is useless. How can I get it? Thank you very much. vigorous
You mean like the "File Created" date that every file on FAT/32, NTFS, and most other file systems has? If you want to access this from code, use the
FileInfo
class along with the local path of your assembly, which you can get formAssembly.GetExecutingAssembly().Location
. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]