| | |
Calendar control
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
Select Calendar control and set SelectionMode property to DayWeek or DayWeekMonth.
You can use DateDiff function Here is the sample:
If you need to count days in Caledar control than simply add this in SelectionChanged event od the Calendar control:
Hope it helps.
•
•
•
•
2-how many days between 2 dates? how can u calculate it?
example :
10/10/2006 - 12/10/2006 there is 1 day between those 2 dates.
thanks
DateDiff(DateInterval.Day, MyFirstDate, MyLastDate)-1If you need to count days in Caledar control than simply add this in SelectionChanged event od the Calendar control:
ASP.NET Syntax (Toggle Plain Text)
Me.Calendar1.SelectedDates.Count
Hope it helps.
Last edited by ManicCW; Oct 11th, 2006 at 10:33 am.
![]() |
Similar Threads
- Retrieving dates from a dataset (Month Calendar) (VB.NET)
- calendar control (VB.NET)
- ActiveX Calendar Control Help =\ (VB.NET)
- Retrieving dates from a dataset (Month Calendar) (Community Introductions)
- I want to Edit Calendar Class in ASP.NET (ASP.NET)
- Edit Calendar (ASP.NET)
- Help with creating a Calendar!! (Visual Basic 4 / 5 / 6)
Other Threads in the ASP.NET Forum
- Previous Thread: clear form data
- Next Thread: Debug Settings???????
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iis javascript jquery listbox menu microsoft mouse mssql nameisnotdeclared news opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





