Click here to Skip to main content
15,904,346 members

Comments by Member 15802897 (Top 2 by date)

Member 15802897 19-Oct-22 10:40am View    
It says that the nullable type might be null
And that datepicker does not contain a Add days feature
Member 15802897 19-Oct-22 9:41am View    
How would you do that? I tried this way (if (int.TryParse(Text1.Text, out int weeksToAdd) && Date1.SelectedDate.HasValue)
Date2.SelectedDate = Date1.SelectedDate.Value.AddDays(7 * weeksToAdd);) but I'm still getting an error.