Sage dates in Crystal Reports

I am doing pwFormatDate(ORDDATE) = CurrentDate -1 to obtain yesterdays date and then trying to filter on this date for yesterdays orders. But I need to convert this date back to a Sage date to do the filter. Is there a function that converts back to Sage format? Or is there another way of doing this?

Any clues will be helpful.

Thanks