/// <summary> /// Save the creation date of the current file to the Last Upload Date settings /// </summary> /// <param name="fileToUpload">File to get creation date</param> /// <param name="dateSetting">Name of the date setting to save to settings</param> public static async Task SaveLastUploadDateAsync(StorageFile fileToUpload, string dateSetting) { await SettingsService.SaveSettingToFileAsync(dateSetting, fileToUpload.DateCreated.DateTime); }