adds helper for formatting dates properly