optimize date output