title: How to get current date using widget TextClock in android?
body: <p>I have create a TextClock widget to show the running time.</p>
  
  <p>In Layout </p>
  
  <pre><code>&lt;TextClock
      android:id="@+id/timerr"
      android:layout_width="wrap_content"
      android:layout_centerInParent="true"
      android:textSize="50sp"
      android:layout_height="wrap_content"
    /&gt;
  </code></pre>
  
  <p>In activity , created reference</p>
  
  <pre><code>    textClock = (TextClock) findViewById(R.id.timerr);
  </code></pre>
  
  <p>Setted format for both 12 hours and 24 hour format</p>
  
  <p>For 24 hour</p>
  
  <pre><code>    textClock.setFormat12Hour(null);
      textClock.setFormat24Hour("HH:mm:ss");
  </code></pre>
  
  <p>for 12 hour,</p>
  
  <pre><code>   textClock.setFormat12Hour("hh:mm:ss a");
     textClock.setFormat24Hour(null);
  </code></pre>
  
  <p>Now,i need to get the current date while clicked the button along with the time,but i need to display only the time not the date in UI.</p>
  
  <p>it is possible to get the Date along with time,someone help plz..
  Thanks in advance.</p>
  
  <p>This is how my UI looks...</p>
  
  <p><a href="http://i.stack.imgur.com/oQ5VR.png" rel="noreferrer">http://i.stack.imgur.com/oQ5VR.png</a></p>