This is a migrated thread and some comments may be shown as answers.

Select Start date and End date from RadCalender Selected date range

1 Answer 67 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Indranil
Top achievements
Rank 1
Indranil asked on 19 Dec 2013, 07:16 AM
Hi All,

I need a help . its urgent, I am working with RadCalender Control. I am selecting whole week by clicking a date on the calender. But i need to get the Start Date end End Date of the Week which i selected.  

Please Help.
Thank You
Neel

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 19 Dec 2013, 08:37 AM
Hi Indranil,

Please have a look into the following JavaScript to get the Start Date and End Date from the selected dates.

JavaScript:
<script type="text/javascript">
    function GetDate() {
        var calendar = $find("<%= RadCalendar1.ClientID %>");
        var dates = calendar.get_selectedDates();
        alert("Start Date" + dates[0]);
        alert("End Date"+ dates[dates.length-1]);
    }
</script>

Thanks,
Shinu.
Tags
Calendar
Asked by
Indranil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or