title: What will be the date-time pattern in nl_NL locale of this?
body: <p>In my project I am using a date conversion as follows (I have taken only the relevant chunk for brevity)</p>
  
  <pre><code>import java.text.ParseException;
  import java.text.SimpleDateFormat;
  import java.util.Calendar;
  import java.util.Date;
  import javax.xml.datatype.DatatypeConfigurationException;
  import javax.xml.datatype.DatatypeFactory;
  import javax.xml.datatype.XMLGregorianCalendar;
  
  
  public class FormatTest {
  
      public static void main(String[] args) {
          try {
              String destinationDateFormat = "MM/dd/yyyy HH:mm:ss";
              String sourceDateFormat = "EEE MMM d HH:mm:ss z yyyy";
              String dateString = "2011-12-20T00:00:00+00:00";
  
              DatatypeFactory factory = DatatypeFactory.newInstance();
  
              XMLGregorianCalendar cal = factory.newXMLGregorianCalendar(dateString);
              Calendar gCal = cal.toGregorianCalendar();
              Date convertedDate = gCal.getTime();
              SimpleDateFormat sdf = new SimpleDateFormat(sourceDateFormat);
              if (convertedDate != null) {
                  String convertedDateString = new SimpleDateFormat(destinationDateFormat).format(sdf.parse(
                              convertedDate.toString()).getTime());
  
                  System.out.println("Final Date :" + convertedDateString);
              }       
  
          } catch (DatatypeConfigurationException e) {
              e.printStackTrace();
          } catch (ParseException e) {
              e.printStackTrace();
          }
  
  
  
      }
  
  }
  </code></pre>
  
  <p>In my project the variables <code>destinationDateFormat</code> and <code>sourceDateFormat</code> is being read from a spring properties file. The above code works fine in the unix boxes where system locale is set as <strong>en_US</strong> or <strong>en_GB</strong>, but one of the test boxes has <strong>nl_NL</strong> locale and that's where the above code is failing giving a ParseException. The problem is like <code>sourceDateFormat</code> is not parse-able in nl_NL locale.</p>
  
  <p>Can anybody suggest me what should be the corresponding <code>sourceDateFormat</code> in <strong>nl_NL</strong> locale?</p>
  
  <p>I don't want to the change the java code as it is costly.</p>