Parsing String to Datestamp doesn't work. Java
<p>I'm trying to parse String in format MMM-dd-yyyy to Timestamp. I'm doing this like below:</p>

<pre><code>String dateto = "Dec-01-2013";
try{
    DateFormat datetoDF = new SimpleDateFormat("MMM-dd-yyyy");
    Date datetoD = (Date)datetoDF.parse(dateto);
    datetoTS = new Timestamp(datetoD.getTime());
}
catch(ParseException e)
{
    log.error("RegisteredUserDataProvider:getFilteredUsers:ParseException: " + e.getMessage());
    String stackTrace = ExceptionUtils.getStackTrace(e);
    log.error(stackTrace);
}
</code></pre>

<p>Why it works only with March (for example Mar-01-2013)?
When I give any other date with other month I get </p>

<pre><code>java.text.ParseException: Unparseable date: "Dec-01-2013"
</code></pre>

<p>I've checked it for set of variables with every month:
"Dec-01-2013", "Nov-01-2013", "Oct-01-2013", "Sep-01-2013", "Aug-01-2013", "Jul-01-2013", "Jun-01-2013", "May-01-2013", "Apr-01-2013", "Feb-01-2013", "Jan-01-2013" and "Mar-04-2013". It works only for Mar. Any idea why?</p>
