Optimized DateHelper.