title: DateTime format confusion USA and Europe
body: <p>I have this kind of xml where 1st jan and 1st feb is the actually format means dd.mm.yyyy. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;eventManager&gt;
      &lt;event&gt;
          &lt;name&gt;brith day0&lt;/name&gt;
          &lt;place&gt;home&lt;/place&gt;
          &lt;latitude&gt;60.170133&lt;/latitude&gt;
          &lt;longitude&gt;24.938428&lt;/longitude&gt;
          &lt;date&gt;01.01.2011&lt;/date&gt;
          &lt;time&gt;00:00&lt;/time&gt;
          &lt;img&gt;birthday.jpg&lt;/img&gt;
      &lt;/event&gt;
      &lt;event&gt;
          &lt;name&gt;brith day0&lt;/name&gt;
          &lt;place&gt;home&lt;/place&gt;
          &lt;latitude&gt;60.170133&lt;/latitude&gt;
          &lt;longitude&gt;24.938428&lt;/longitude&gt;
          &lt;date&gt;01.02.2011&lt;/date&gt;
          &lt;time&gt;23:00&lt;/time&gt;
          &lt;img&gt;birthday1.jpg&lt;/img&gt;
      &lt;/event&gt;
  &lt;/eventManager&gt;
  </code></pre>
  
  <p>Then A class called event which gets all data from above xml event. Now my intention is to check whether two dates are equal or not. For the following case it is true. But it is not true according to above xml format.</p>
  
  <pre><code>if (CompareSameMonth(EventList[0]._date, EventList[1]._date)) { }
  
  bool CompareSameMonth(DateTime dt1, DateTime dt2) 
  { 
      bool same = false; 
  
      Debug.WriteLine("dt1.Month "+dt1.Month.ToString()); // output dt1.Month 1 
      Debug.WriteLine("dt2.Month "+dt2.Month.ToString()); // output dt2.Month 1
  
      if (dt1.Year == dt2.Year &amp;&amp; dt1.Month == dt2.Month) 
          same = true; 
  
      return same; 
   } 
  </code></pre>
  
  <p>How can fix this using c# wp7 problem?</p>
  
  <p>Adding more info how I got XML to EventList:-</p>
  
  <p>public void ParseXml(string content)
          {</p>
  
  <pre><code>        m_XMLContent = XDocument.Parse(content);
  
          var data = from query in m_XMLContent.Descendants("event")
                     select new Event
                     {
                         name = (string)query.Element("name"),
                         place = (string)query.Element("place"),
                         latitude = (double)query.Element("latitude"),
                         longitude = (double)query.Element("longitude"),
                         _date = (DateTime)query.Element("date"),
                         _time = (DateTime)query.Element("time"),
                         imgLink = (string)query.Element("img")
                     };
  
         EventList.Sort(new DateTimeComparer());
  
      }
  
      public class DateTimeComparer : IComparer&lt;Event&gt;
      {
          public int Compare(Event x, Event y)
          {
              return x.date_time.CompareTo(y.date_time);
          }
      }
  </code></pre>