title: Convert string to date Android
body: <p>I'm trying to convert a String that represents a date stored in SQLITE.</p>
  
  <p>The date was stored into sqlite as follows:</p>
  
  <pre><code>Date date;
  
  date.toString();
  </code></pre>
  
  <p>According with Java documentation, <code>toString()</code> method:</p>
  
  <blockquote>
    <p>Returns a string representation of this Date. The formatting is
    equivalent to using a SimpleDateFormat with the format string "EEE MMM
    dd HH:mm:ss zzz yyyy", which looks something like "Tue Jun 22 13:07:00
    PDT 1999". The current default time zone and locale are used. If you
    need control over the time zone or locale, use SimpleDateFormat
    instead. </p>
  </blockquote>
  
  <p>Until here, it's fine but, when I try to get the String and convert it to date again, Java throws an exception.</p>
  
  <p>The String comes from sqlite:</p>
  
  <pre><code>Mon Jan 20 18:26:25 BRT 2014
  </code></pre>
  
  <p>So, I do:</p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US);
  
  Date date= sdf.parse("Mon Jan 20 18:26:25 BRT 2014");
  </code></pre>
  
  <p>What I'm doing wrong?</p>
  
  <p>Thanks.</p>