Date and time format configuration

Here is a cleaner pull request to configure date and time formats.

All configuration elements have been put in the main json file, the example.json has been updated accordingly.