title: String date to xmlgregoriancalendar conversion
body: <p>I have written this function :</p>
  
  <pre><code>public static XMLGregorianCalendar getXMLGregorianCalendar(String date) throws OmniException{
      XMLGregorianCalendar xmlCalender=null;
      GregorianCalendar calender = new GregorianCalendar();
      calender.setTime(Util.stringToJavaDate(date));
      xmlCalender = DatatypeFactory.newInstance().newXMLGregorianCalendar(calender);
      return xmlCalender;
  }
  
  public static Date  stringToJavaDate(String sDate)  throws OmniException{
      Date date=null;
      date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH).parse(sDate);        
      return date;  
  }
  </code></pre>
  
  <p>When i am passing date as <code>"2014-01-07"</code> am getting output date as <code>2014-01-06T18:30:00:000Z</code>
  where i am going wrong ?
  also what to do if I want to get only <code>2014-01-06T18:30:00</code> and <code>2014-01-06T18:30:00Z</code><br>
  Any help is appreciated </p>