Compact format representation fix

If time is zero, then revert to short YYYYMMDD format