title: convert string to date and store in sqlite in android
body: <p>I have date like this in string datatype from server <code>2012-09-25 12:44:50.000</code>. How can i change into date and store in sqlite in android....</p>
  
  <p>I have tried like this...</p>
  
  <pre><code>String ackwardDate="2012-09-25 12:44:50.000";
  Calendar calendar = Calendar.getInstance();
  String ackwardRipOff = ackwardDate.replace("/Date(", "").replace(")/", "");
  Long timeInMillis = Long.valueOf(ackwardRipOff);
  calendar.setTimeInMillis(timeInMillis);
  values.put(DBCREATIONDATE,calendar.getTime().toGMTString());
  </code></pre>
  
  <p>but i am getting Invalid Long : <code>"2012-10-30T03:12:53.827"</code></p>