Split code into separate methods
Custom date format

It is now possible to set a custom date format