Vikas

Vikas

  • 1.4k
  • 470
  • 22.9k

How to concatenate date and time in angular 6

May 22 2019 7:33 AM
<div class="row">
<div class="col-xs-6">
<div class="form-group">
<div class="wheel-date" style="width: 100% !important;">
<!-- <span>Pickup Date</span> -->
<label for="date_pick">
<input class="form-control date-pick" type="text" placeholder="Pickup Date" ng-model="pickupdate"
[(ngModel)]="Testing.pickupDateTime" [ngModelOptions]="{standalone: true}"
name="date_pick" id="date_pick">
</label>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<!-- <span>Pickup Time</span> -->
<input class="time-pick form-control" type="text" placeholder="Time" name="time_pick" id="time_pick"
ng-model="pickuptime" [(ngModel)]="Testing.pickupDateTime" [ngModelOptions]="{standalone: true}">
</div>
</div>
</div>

Answers (1)