calcutate if 2 weeks have passed from date js code example Example: js date in two weeks date1.setDate(date.getDate() + 14);