[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 483
  • Last Modified:

asp.net 4.0 calendar get selected dates

I have a calendar control, selection mode is set to DayWeek.  So I select a week and I have two labels that I want to put the beginning date and ending date into so

label1.text = calendar1.selected. date gets the first day (Sunday)
label2.text = calendar1.???????  << I need this to be the last day (Saturday)

Thanks
0
bergertime
Asked:
bergertime
  • 2
1 Solution
 
YZlatCommented:
try

 Label1.Text += Calendar1.SelectedDates[0];

        Label2.Text += Calendar1.SelectedDates[6];
0
 
bergertimeAuthor Commented:
Wow,that was fast.
0
 
bergertimeAuthor Commented:
Oh, and thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now