Added method to format date to UiUtils that takes in a date, format string, locale