Select Start date and End date from RadCalender Selected date range

2 posts, 1 answers
  1. Indranil
    Indranil avatar
    14 posts
    Member since:
    May 2011

    Posted 19 Dec 2013 Link to this post

    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
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2013 Link to this post

    Hi Indranil,

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

    <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]);

Back to Top