This post solves that and much more!
Essentially you’ll need to create a parameter and trunc your dates based off of your parameter.