Try to output date correctly