Code example for SimpleDateFormat

Methods: format

      Date begin_of_day = cal.getTime();
        dateFormt = new SimpleDateFormat("MM-dd");
      } else { 
        dateFormt = new SimpleDateFormat("HH:mm");
    } else { 
      dateFormt = new SimpleDateFormat("MM-dd HH:mm");
    return dateFormt.format(date);
  public static final class SMS implements BaseColumns {
    public static final Uri INBOX_URI = Uri.parse("content://sms/inbox");
    public static final String THREAD_ID = "thread_id";
    public static final String ADDRESS = "address";
    public static final String SUBJECT = "subject";
Connect your IDE to all the code out there  Get Codota for Java