Ok, yes, you're absolutely right, thanks for responding. I have customized it a bit (e.g. changing "yesterday" to return a TIMEX3 Date instead of a date/time, roughly speaking, I'm probably forgetting the details). I was really hoping you knew of something better ;)