date - MYSQL select the monday of two weeks ago -
date - MYSQL select the monday of two weeks ago -
how select not lastly monday, mon before, utilize in statement so:
where date(ramses.batch_log.start_time) < date_sub(now(), interval 2 week)
so, 2 weeks ago, not today(wednesday), monday.
edit cleaner , right one:
where date(ramses.batch_log.start_time) < subdate(subdate(now(), interval weekday(now()) day), interval 2 week);
mysql date time
Comments
Post a Comment