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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -