Thanks for that, but Im not sure anything in there answered my question. What I'm looking for is how to determine the date with another date For example, I have a date 6/01/2004 and I want to know the date of the prior Sunday which would be 5/30/2004. Another example would be 6/10/2004, the Sunday date would be 6/6/2004.
I would like something like
date --date="6/7/2004" "1 day ago"
and have it display 6/6/2004