Hi All -
i have been using a datepicker in my programs (below code) and not i want to startup a monthCalendar.
the code i used to get a value from the datepicker in my sql is:
-----------------------------------------------------------
Dim instanceFrom As DateTimePicker = DatePickFrom1
Dim instanceTo As DateTimePicker = DatePickTo1
Dim dte, dte2 As DateTime
Dim dteFrom, dteTo As String
dte = instanceFrom.Value
dte2 = instanceTo.Value
dteFrom = dte.ToString("dd/MMM/yyyy")
dteTo = dte2.ToString("dd/MMM/yyyy")
-----------------------------------------------------------
i have tried to replicate this for a monthcalendar, but no luck...
-----------------------------------------------------------
Dim instanceFrom As Monthcalendar = monthcalendar1
Dim Caldate As DateTime
Dim CaldateValue To As String
Caldate = instanceFrom.Value
CaldateValue = Caldate .ToString("dd/MMM/yyyy")
-----------------------------------------------------------
So essentially i want the user to select a date from the MonthCalendar (but just clicking/highlighting it)
and then i can use that date in my sql..
any ideas would be appreciated!!!