Fix datetime formats, reduce number of functions necessary for date formatting.