I dragged two calendars from the toolsbox. let say if i clicked calendar1 date as 22 july 2008 and i clicked calendar2 date as 25 july 2008. i want to calculate out the total date. is there any coding for these?
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
Label5.Text = Calendar1.SelectedDate
Protected Sub Calendar2_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar2.SelectionChanged
Label6.Text = Calendar2.SelectedDate
Label7.Text = Calendar2.SelectedDate.AddDays(-Calendar1.SelectedDate.Day)
i try this out
it did minus the day
but the month and year was still there..
wat did i declare wrong?
im using vb2005