datetime - Groovy - idiomatic way of coding The Last Weekday - First of Month -


what groovy idiomatic way of asking last past weekday (ex. monday)? (or current week, first day of week)?

also there similar asking current month, first of month?

static date firstdayinweek(date day) {     day.cleartime()     return day - day.calendardate.dayofweek } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -