how to get the date of last week's (tuesday or any other day) in php?

Posted by lock on Stack Overflow See other posts from Stack Overflow or by lock
Published on 2009-02-02T08:24:30Z Indexed on 2010/05/24 9:31 UTC
Read the original article Hit count: 151

Filed under:
|

i think its possible but i cant come up with the right algorithm for it what i wanted to do was if today is monday feb 2 2009, how would i know the date of last week's tuesday? and using that same code 2 days after, i would find the same date of last week's tuesday with the current date being wednesday, feb 4 2009?

© Stack Overflow or respective owner

Related posts about php

Related posts about date