Calender Object

  • Thread starter Thread starter daftpunknl
  • Start date Start date
D

daftpunknl

Guest
I`m using the calender so the user can select a date and retrieve records from a database with all records involving that date.

When i list all request.form items the calender seems te send a number indicating the date.

I figured out:

0 = jan-1-2000
1012 = oct-9-2002
-1 = dec-31-1999

How can i set up the calender to use real dates instead of those numbers counting the days since 1-1-2000
 
Im assuming that youre using the MonthCalendar Control....
Code:
  Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
        MessageBox.Show(e.Start.Month.ToString & "/" & e.Start.Day.ToString & "/" & e.Start.Year.ToString)
 End Sub
 
asp

I`m using it in a asp.net project and it doesnt know windows.form.

what should i use instead of the system.windows.form?
 
Never mind... got it:

Private Sub Calender_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calender.SelectionChanged
Response.Write("<BR>" & Calender.SelectedDate & " --> Geselecteerde datum")
End Sub
 
Back
Top