title: in angular js - how get current time on button click
body: <p>I have two buttons like in and out, i need to show current time .. once clicked any button i need to send current time and date  </p>
  
  <pre><code> &lt;label&gt;Today's Date : {{currentdate}}&lt;/label&gt;
    &lt;label&gt;Current Time :  {{currenttime}}&lt;/label&gt;
  
    &lt;button type="submit" class="btn" ng-disabled="disabledin"  value="in" ng-
    click="submitFun($event)"&gt;IN&lt;/button&gt;
    &lt;button type="button" class="btn" ng-disabled="disabledout" value="out" 
     ng-click="submitFun($event)"&gt;OUT&lt;/button&gt;
  </code></pre>