in reply to Yesterday's or last month's date?

Here you are. You are fairly non specific about what consitutes "last month" so I have just used 30 days.

cheers

tachyon

$time = time(); print "Yesterday (24 hours ago): ".localtime($time-24*60*60),"\n"; print "Last month (30 days ago): ".localtime($time-30*24*60*60),"\n";