Make datetime format string customizable, fixes #46