•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,366 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,069 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2276 | Replies: 2
![]() |
Select Calendar control and set SelectionMode property to DayWeek or DayWeekMonth.
•
•
•
•
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
You can use DateDiff function Here is the sample:
DateDiff(DateInterval.Day, MyFirstDate, MyLastDate)-1
If you need to count days in Caledar control than simply add this in SelectionChanged event od the Calendar control:
Me.Calendar1.SelectedDates.Count
Hope it helps.
Last edited by ManicCW : Oct 11th, 2006 at 9:33 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- 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???????


Linear Mode