shrc: Simplify datestr implementation