if (format == null) {
String dateStyle = (String) component.getAttributes().getValue("dateStyle");
DateService dateService = DateServiceImpl.get();
int intDateStyle = dateService.getStyle(dateStyle);
return lclService.formatDate(date, loc, tz, intDateStyle);
} else {
// no pattern, no result
if (AuraTextUtil.isEmptyOrWhitespace(format)) {
return "";
} else {