title: How to get the call log from specific date in android
body: <p>In my app i am getting the all call log by using this code.it return me all the call log in my android phone.</p>
  
  <pre><code>public class CallLogHelper {
  
      public static Cursor getAllCallLogs(ContentResolver cr) {
          // reading all data in descending order according to DATE
          String strOrder = android.provider.CallLog.Calls.DATE + " DESC";
          Uri callUri = Uri.parse("content://call_log/calls");
          Cursor curCallLogs = cr.query(callUri, null, null, null, strOrder);
          return curCallLogs;
      }
  
      public static void insertPlaceholderCall(ContentResolver contentResolver,
              String name, String number) {
          ContentValues values = new ContentValues();
          values.put(CallLog.Calls.NUMBER, number);
          values.put(CallLog.Calls.DATE, System.currentTimeMillis());
          values.put(CallLog.Calls.DURATION, 0);
          values.put(CallLog.Calls.TYPE, CallLog.Calls.OUTGOING_TYPE);
          values.put(CallLog.Calls.NEW, 1);
          values.put(CallLog.Calls.CACHED_NAME, name);
          values.put(CallLog.Calls.CACHED_NUMBER_TYPE, 0);
          values.put(CallLog.Calls.CACHED_NUMBER_LABEL, "");
          Log.d("Call Log", "Inserting call log placeholder for " + number);
          contentResolver.insert(CallLog.Calls.CONTENT_URI, values);
      }
  
  }
  </code></pre>
  
  <p>But my problem is this i want to get the call log from specific date, not all call log. I have no idea how to use the query to get the call log from specific date.
  Help me Thanks</p>