Groovy web console

subscribe to the feed Subscribe
to this


Published 3 weeks ago by something with tags something
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
 Calendar aCalendar = Calendar.getInstance();    
    aCalendar.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
    aCalendar.set(Calendar.HOUR_OF_DAY, 0);
    aCalendar.set(Calendar.MINUTE, 0);
    aCalendar.set(Calendar.SECOND, 0);
    aCalendar.set(Calendar.MILLISECOND, 0);
    aCalendar.add(Calendar.DATE, -7);

    return aCalendar.getTime();