Ok, so if I get the question correctly you want to find out for the currently powered off VMs when they were last powered on and that should be more than 30 days ago ?
The attached script uses my Get-VIEventPlus function from my Get the vMotion/svMotion history post to find these.
Have a look.
Using a function that does this VM per VM would take forever I'm afraid.