improve helper for output date