Add check for valid date in config, if date is invalid, use moment.js