Speedup

Define $formats only once in _date_short and _date_long
Merge pull request #1 from kberov/patch-1

Speedup by defining $format only once