title: XMLGregorianCalendar date comparison
body: <p>How do i compare 2 instances of XMLGregorianCalendar to find which one is greater?
   One of the date variables have a value</p>
  
  <pre><code>date1 = 2009-02-23T05:54:17+05:30
  </code></pre>
  
  <p>and the other,</p>
  
  <pre><code>date2 = 2009-02-23T05:54:17.000
  </code></pre>