correct date output