Get previous year

2 posts, 0 answers
  1. Ivy
    Ivy avatar
    30 posts
    Member since:
    Feb 2013

    Posted 23 Apr 2013 Link to this post

    Hi

    There is a radmonthyearpicker. Using javascript, how to get the previous year in numerics based on a selected date?

    Thanks
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Apr 2013 Link to this post

    Hi,

    Please have a look at the below JS code.

    JavaScript:
    var RadMonthYearPicker1= $find('<%=RadMonthYearPicker1.ClientID %>');
    alert(RadMonthYearPicker1.get_dateInput().get_selectedDate().getFullYear() - 1);

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top