title: How Convert Android Date to Linux TimeStamp?
body: <p>i have a date string in </p>
  
  <blockquote>
    <p>DD-MM-YYYY (28-11-2011)</p>
  </blockquote>
  
  <p>I want to convert it into linux time stamp without time or time is zero.</p>
  
  <p>I am doing it by </p>
  
  <pre><code>String dateString="13-09-2011";
  SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
                Date date = null;
                try {
                      date = (Date)formatter.parse(dateString);
                      Log.v(Constants.LOGGING_TAG, "Date is " + dateString);
                  } catch (ParseException e) {
                      e.printStackTrace();
                  }
                  Log.v(Constants.LOGGING_TAG, "Today is " + date.getTime());
  </code></pre>
  
  <p>but this is not giving the desired result. Any body have any idea to solve this issue.</p>