If you want to display the build date of your build, this should do this in most cases:
public static DateTime GetBuildDate() { UriBuilder uri = new UriBuilder(Assembly.GetExecutingAssembly().CodeBase); return File.GetLastWriteTime( Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path)) ); }
There is also another way to determine the real compilation / build date of the โhard wayโ here on SO:
source share