问题
I need to open a calendar, for date fields without using plugins. Is there any directive to use dateTime picker which can be used for angular8 project, or anyone can suggest me how i can work for that.
I need to pick up the date and time along with AM and PM, and display the same when i get data from backend in any format like(2019-12-13T15:25:00).
I am expecting date time picker somewhat like this:
DateTime Picker
Angular way I tried for:
Angular Demo
HTML:
<div class="container">
<div class="row">
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date' id='datetimepicker1'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
回答1:
This is a good one, part of ngx-bootstrap modules collection https://valor-software.com/ngx-bootstrap/#/datepicker
来源:https://stackoverflow.com/questions/59782132/datetime-picker-directive-for-angular-8