title: converting calendars
body: <p>I use these codes to convert Gregorian calendar to Julian calendar and there's no problem.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          JulianCalendar juli = new JulianCalendar();
          DateTime dt = Convert.ToDateTime(textBox1.Text);
          int day = juli.GetDayOfMonth(dt);
          int month = juli.GetMonth(dt);
          int year = juli.GetYear(dt);
          string s = string.Format("{0}/{1}/{2}", month, day, year);
          textBox2.Text = s;
      }
  </code></pre>
  
  <p>It gives me the Julian date time but when i want to convert it again to Gregorian calendar with exactly that date time it won't work. i use these following codes for converting Julian calendar to Gregorian calendar. what's the problem?</p>
  
  <pre><code> private void button2_Click(object sender, EventArgs e)
      {
          string juli = textBox3.Text;
          string[] parts = juli.Split('/', '-');
          JulianCalendar jul = new JulianCalendar();
          DateTime dta = jul.ToDateTime(Convert.ToInt32(parts[0]), Convert.ToInt32(parts[1]), Convert.ToInt32(parts[2]), 0, 0, 0, 0);
          string sta = dta.ToShortDateString();
          textBox4.Text = sta;
      }
  </code></pre>