Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular datetime picker?

I can find plenty of datetime pickers for AngularJS but no reliable (working) ones for Angular. Is there any Angular datetime picker that works, that someone here has used?

like image 846
developer747 Avatar asked Oct 30 '22 01:10

developer747


2 Answers

Try Calendar control from primeNG. This gives you any format of date & time.

Sample implementation looks like below-

Update package.json

"primeng": "^1.0.0-beta.7", "primeui": "^4.1.10",

component lines are-

import { Calendar } from 'primeng/primeng';
directives: [Calendar]

p-calendar [(ngModel)]="date1" dateFormat="mm/dd/yy" timeFormat="HH:mm">

You can find more format examples on - http://www.primefaces.org/primeng/#/calendar

like image 61
Sanket Avatar answered Nov 08 '22 08:11

Sanket


Not sure if this helps, but i have made a basic popup component using the ngx-bootstrap datepicker and timepicker. You can find it here

https://github.com/Gillardo/ngx-bootstrap-datetime-popup

like image 31
Gillardo Avatar answered Nov 08 '22 10:11

Gillardo