new Date(form == 1 ? date.setHours(0, 0, 0, 0) : (date.setDate(date.getDate()-(date.getDay()||7)), date.setHours(24, 0, 0, 0))).getTime()