do it the same way, but use year() and month()