More robust formatDate util.