DateTime picker directive for Angular 8

假如想象 提交于 2021-01-28 11:31:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!