How can I retrieve the Created date from the current .NET assembly?
I’d like to add some realy simple functionality where my app stops working one week after the build date of the main assembly. I already wrote the code that kills my app after a given date. I just need to programmatically retrieve the creation date from the assembly.
I don’t think the assembly itself contains it’s creation date. I suspect the closest you can get is the creation date of the assembly file itself:
should do the trick.
EDIT:
I think Jeff Atwood’s solution, written up by “grenade” in this thread, is probably the better way to go now.