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?

10 Years
Discussion Span
Last Post by greeny_1984

Sorry i try to change 1 by 1 with it but nothing show the number of day.

what is needed to change in the event of calendar2?
Is any change needed in calendar1?
can i show the number of day on a label or so?
no code is required to show this?

thanx alot for the help!


Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
Label5.Text = Calendar1.SelectedDate
End Sub

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)
End Sub

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


Is there any print button code to allow the page to print?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.