I have a datetimepicker, I'm needing this to pass the date inside the text to the model.
I would place this in a fiddle but i don't know how as it has the bootstrap timepicker located here http://eonasdan.github.io/bootstrap-datetimepicker angular(obvs) and other stuff
This is what i have so far;
  <div class="form-group">
                  <div class='input-group date' ng-model="package.timeA">
                      <input type='text' id='datetimepicker3' ng-model="package.timeA" ng-change="alert('Hello')" class="form-control" />
                      <span class="input-group-addon" ng-model="package.timeA">
                          <span class="glyphicon glyphicon-time"></span>
                      </span>
                  </div>
              </div>
          <script type="text/javascript">
              $(function () {
                  $('#datetimepicker3').datetimepicker({
                      format: 'LT'
                  }).on("dp.change", function(e) {
                    document.getElementById('datetimepicker3').value = e.date;
                  });
              });
          </script>
The datetimepicker needs to pass into the model, Totally stuck until it does so i can submit it to the DB
Any Ideas?>
 
     
     
     
    