title: Setting date content values on android calendar
body: <p>Following is the code which i have used to add a event on Android Calendar</p>
  
  <pre><code>Cursor cursor=getContentResolver().query(Uri.parse("content://com.android.calendar/calendars"), new String[]{"_id", "displayname"}, null, null, null);
  cursor.moveToFirst();
  // Get calendars name
  String calendarNames[] = new String[cursor.getCount()];
  // Get calendars id
  int[] calendarId = new int[cursor.getCount()];
  for (int i = 0; i &lt; calendarNames.length; i++)
  {
           calendarId[i] = cursor.getInt(0);
           calendarNames[i] = cursor.getString(1);
           cursor.moveToNext();
  }
  
  cursor.close(); 
  
  ContentValues contentEvent = new ContentValues();
  contentEvent.put("calendar_id", 1);
  contentEvent.put("title", calTitle);                                                           
  contentEvent.put("description", "Test Event");                                  
  contentEvent.put("eventLocation", "New York");                            
  long startTime = System.currentTimeMillis() + 1000 * 60 * 60;
  long endTime = System.currentTimeMillis() + 1000 * 60 * 60 * 2;
  
  contentEvent.put("dtstart", startTime);
  contentEvent.put("dtend", endTime);                                        
  contentEvent.put("allDay", 1);                                                                
  contentEvent.put("hasAlarm",1);
  
  Uri eventsUri = Uri.parse("content://com.android.calendar/events");    
  getContentResolver().insert(eventsUri, contentEvent);
  </code></pre>
  
  <p>How do i change the <code>dtstart</code> and <code>dtend</code> to dates which I prefer? Is there a specific format for this? for example: say I need to add <code>dtstart</code> to 02/11/2013 and <code>dtend</code> to 03/11/2013</p>