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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -