Flexibly format dates and times to a given locale
