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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -