saves date with userDefaults