Assuming you mean this Calendar
control, you should just use the SelectedDate
or SelectedDates
property - let the control handle the conversions.
In general, you should avoid performing textual conversions unless you really need to. (This includes when you interact with the database - use parameterized SQL, and simply pass the DateTime
values in the parameters.)