How can I get the assembly last modified date?

I’ll second pYrania’s answer: System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly(); System.IO.FileInfo fileInfo = new System.IO.FileInfo(assembly.Location); DateTime lastModified = fileInfo.LastWriteTime; But add this: You mention you don’t want to access the file system since it’s in your master page and you don’t want to make that extra file system hit for every page. So don’t, just access it … Read more

Finding modified date of a file/folder

If you run the Get-Item or Get-ChildItem commands these will output System.IO.FileInfo and System.IO.DirectoryInfo objects that contain this information e.g.: Get-Item c:\folder | Format-List Or you can access the property directly like so: Get-Item c:\folder | Foreach {$_.LastWriteTime} To start to filter folders & files based on last write time you can do this: Get-ChildItem … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)