Installation date of Ubuntu
As I found here sudo grep ubiquity /var/log/installer/syslog | less
should work for Ubuntu.
last
works for Fedora.
sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'
Use this command for check when was the OS installed.