onClick I pass some form values to my code behind, one of which is a calendar.selecteddate.
If the user leaves this unselected I want to pass the current date to the DB.
dim StartDate as CalStart.SelectedDate
if StartDate = "" then
StartDate = system.datetime.now
but i get errors converting a datetime to a string (or vice versa)
How can I achieve the above? system.dbnull.value didn't work either