Fix build error in formatDate/formatDateShort