Rob Sewell shares with us how you can get the installation date for SQL Server:
How can I get the Installation Date for SQL Server on my estate into a database with dbatools ?
You can get the date that SQL Server was installed using the creation date of the NT Authority\System login using T-SQL
Read on for the T-SQL answer as well as the Powershell answer.