title: Difference in years,months and days between 2 hijri dates
body: <p>Please can anyone provide a method to calculate the difference between 2 hijri dates thanks in advance</p>
  
  <p>i tried this code</p>
  
  <pre><code>            HijriCalendar hijriCal=new HijriCalendar();
              DateTimeFormatInfo DTFormat = new System.Globalization.CultureInfo("ar-sa", false).DateTimeFormat;
              DTFormat.Calendar = new System.Globalization.HijriCalendar();
              DTFormat.ShortDatePattern = "dd/MM/yyyy";
              string HijriDate = FromDate.Date.ToString("d", DTFormat);
              string[] fromDateParams=HijriDate.Split('/');
              HijriDate = ToDate.Date.ToString("d", DTFormat);
              string[] toDateParams = HijriDate.Split('/');
              DateTime fromDateHijri = new DateTime(hijriCal.GetYear(FromDate), hijriCal.GetMonth(FromDate), int.Parse(fromDateParams[0]), hijriCal);
              DateTime toDateHijri = new DateTime(hijriCal.GetYear(ToDate), hijriCal.GetMonth(ToDate), int.Parse(toDateParams[0]), hijriCal);
  
              TimeSpan ts = ToDate.Subtract(FromDate);
  </code></pre>