(ref #519) Change datetime formats
Refactored, sorry.
Merge pull request #526 from mrkm4ntr/datetime-format

(ref #519) Change datetime formats