Alternative Date adapters
See original GitHub issueNow that we have an NgbDateAdapter
, it might be nice to bundle a couple of default ones with the library:
-
NgbDateNativeAdapter
- as seen in the datepicker adapter demo to use with native JS date -
NgbDateISOAdapter
- to conform with ISO 8601 Dates -
NgbDateMomentAdapter
- for use with moment js
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Birthday Adapter Alternatives and Similar Apps - AlternativeTo
There are four alternatives to Birthday Adapter for Android and F-Droid. The best alternative is Birday, which is both free and Open Source....
Read more >Datepicker - Angular powered Bootstrap
Bootstrap widgets for Angular: autocomplete, accordion, alert, carousel, datepicker, dropdown, offcanvas, pagination, popover, progressbar, rating, tabset, ...
Read more >date-fns - modern JavaScript date utility library
date -fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
Read more >SportRack Alternative Bike Adapter - Amazon.com
The SportRack Adjustrable Bike Adapter is the perfect solution to carry bikes with uniquely shaped frames on a rear-mounted hanging bike rack.
Read more >Still using java.util.Date? Don't! - Programming Hints
time API out of the box. But there are already different adapters implementations, to support marshalling/unmarshalling of new java.time classes. It does ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my super simple ISO implementation, fwiw :
For what it’s worth, I’ve just crafted a Moment.js adapter with a few basic smoke tests. The full deal is in a public gist, here’s the adapter bits:
I think there’s a
util
based version ofisInt
in the library itself that might be useful instead ofNumber.isInteger
.But, at the bottom line, I guess @maxokorokov has a point that it’s not so nice to pull in Moment.js as a dependency just to demonstrate something. Not sure what the solution would be for that (if any).