Sorry for previous version of this post. I sent it accidentally before I
was finished.
 
In Linux I was able to do this:
 
date +%Y%m%d -d "-1 day

Which would give yesterdays date as 20050530

How can I do this in OpenBSD? I've mucked about with date -r $(expr
$(date +%d) - 86400) but I can't get it to work properly.

Cheers,
Tim.

Reply via email to