title: How to get Call Log by date in android?
body: <p>I am trying to get Call Logs by date. But get stuck with the format of the date to be passed to the cursor to get the values.</p>
  
  <p><strong>Call Log Cursor</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>Calendar calendar = Calendar.getInstance();
  SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
  
  String selection = CallLog.Calls.DATE + " = "+dateFormatter.format(calendar.getTime());
  
  Cursor mCallLogCursor = mContext.getContentResolver().query(
              CallLog.Calls.CONTENT_URI, projection, selection, null,
              CallLog.Calls._ID + " DESC");
  </code></pre>
  
  <p>Tried with various dateformatter type but none of them working. </p>
  
  <p>What I am doing wrong here?</p>