improvement for datetime tick formatting