问题描述
我需要在不使用插件的情况下为日期字段打开日历.是否有任何可用于date8选择器的指令可用于angular8项目,或者有人可以建议我如何为此工作.
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.
我需要获取日期和时间以及AM和PM,并在从后端以任何格式(2019-12-13T15:25:00)获取数据时显示相同的日期和时间.
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:
我尝试过的角度方式:
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>
推荐答案
这是ngx-bootstrap模块集合 https://valor-software.com/ngx-bootstrap/#/datepicker
This is a good one, part of ngx-bootstrap modules collection https://valor-software.com/ngx-bootstrap/#/datepicker
这篇关于Angular 8的DateTime选择器指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!