format date time based on locale