This is a migrated thread and some comments may be shown as answers.

Nullable object must have a value

1 Answer 202 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
dingen
Top achievements
Rank 1
dingen asked on 22 Feb 2010, 11:55 AM
Hi

When i try to save my RadDateTimePicker.SelectedDate property with no date selected to the database, it returns with an error (which value should i assign to this RadDateTimePicker?):

Nullable object must have a value?

D



1 Answer, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 24 Feb 2010, 05:06 PM
Try using RadDateTimePicker.DbSelectedDate. It returns the date in a format that is database-friendly.

I hope that helps.
Tags
Calendar
Asked by
dingen
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Share this question
or