javascript check if 3 weeks passed since date code example Example: js date in two weeks date1.setDate(date.getDate() + 14);