The timing of when beans turn to grounds for fresh roasted beans is different than roasted whenever beans. I *think* bagged beans ground at the store and then rebagged is totally superior to preground bagged coffee.
As far as fresh roasted beans...only grind what you are going to brew within the next 15 minutes. Personally, I grind it within 15 seconds of brewing.
@Bobaganoosh what is your aeropress extraction method? I'm not quite brave enough to use a non paper filter on aeropress. Moka pot, yes.
My extraction method for aeropress is a pot of 6 oz hot water with grind of half way between drip and espresso for about 2 minutes past bloom's end. That gets dumped into aeropress and "burp pressed," and the leftover in the pan gets rinsed into aeropress for easier cleanup.