title: How to pass the date from the calendar to another activity [Android]
body: <p>I am having trouble with passing the date from the calendar to another activity. It's not the current date that I wanted to show, it's the date that the user selects on the calendar that I have coded.  <br>
  Below are my codes.</p>
  
  <pre><code>                            @Override
                  public void onClick(View view)
                  {
                      String date_month_year = (String)view.getTag();
                      selectedDayMonthYearButton.setText(new StringBuilder().append("Selected:").append(date_month_year));
  
                      Intent k = new Intent(Calendar_Event.this, Create_Events.class);
                   startActivity(k);
  
                      try
                      {
                          Date parsedDate = dateFormatter.parse(date_month_year);
                          Log.d(tag, "Parsed Date: " + parsedDate.toString());
                      }
                      catch(ParseException e)
                      {
                          e.printStackTrace();
                      }
                  } 
  
  
                  public int getCurrentDayOfMonth()
                      {
                          return currentDayOfMonth;
                      }
  
                  private void setCurrentDayOfMonth(int currentDayOfMonth)
                      {
                          this.currentDayOfMonth = currentDayOfMonth;
                      }
                  public void setCurrentWeekDay(int currentWeekDay)
                      {
                          this.currentWeekDay = currentWeekDay;
                      }
                  public int getCurrentWeekDay()
                      {
                          return currentWeekDay;
                      }
  
          }//end GridCellAdapter
  </code></pre>
  
  <p>I trying to pass the date selected onClick to the next activity that this class is linked to. <br> Any help will be greatly appreciated, Thanks you!  </p>