edwardwongtl
fun Date.lastweek(): Date = Calendar.getInstance().apply { time = this add(Calendar.WEEK_OF_MONTH, -7) }.time