title: How to convert Persian Calendar date string to DateTime?
body: <p>I use these codes for converting current datetime and minus it with the date time which users type in a textbox. But it gives an error while converting. </p>
  
  <pre><code>PersianCalendar p = new System.Globalization.PersianCalendar();
  DateTime date = new DateTime();
  date = DateTime.Parse(DateTime.Now.ToShortDateString());
  int year = p.GetYear(date);
  int month = p.GetMonth(date);
  int day = p.GetDayOfMonth(date);
  string str = string.Format("{0}/{1}/{2}", year, month, day);
  DateTime d1 = DateTime.Parse(str);
  DateTime d2 = DateTime.Parse(textBox9.Text);
  string s = (d2 - d1).ToString().Replace(".00:00:00", "");
  textBox10.Text = (d2 - d1).ToString().Replace(".00:00:00","");
  </code></pre>
  
  <p>This line will accord an error while converting datetime from string to date time :<code>DateTime d1 = DateTime.Parse(str);</code></p>
  
  <p>Please help me to solve this problem.</p>
  
  <p>Thanks in advance </p>