fixing date print