Speedup

Define $formats only once in _date_short and _date_long