title: show alert if months/years in two strings are different
body: <p>i am creating a web app in mvc-5 angularjs,</p>
  
  <p>i need to show data of the following date entered by the user(in textboxes(i have two textbox)), but the user can only fetch the data of 1 month like, if i want to see data i can enter(01-01-2016) to (31-01-2016) or (29-01-2016) to (31-01-2016)</p>
  
  <p>i a user enter the date like (31-01-2016) to (03-02-2016) then the alert will be shown with the error or if he enters the date like (01-01-2016) to (31-01-2017), then also the alert should appear, 
  my webservice will validate the data in following strings(<code>frmdate and dateto</code>)</p>
  
  <p>what i need to do here?</p>