Use the connections datetime_format

Replaced static datetime formats with the connections datetime_format