Core: Introduce MomentDateTime Adapter
See original GitHub issueIs this a bug, enhancement, or feature request
Feature
Briefly describe your proposal.
Since the latest changes that has been done in the Date/Time components the new DateTimeAdapter
entity was introduced.
So far there is only one DateTimeAdapter - FdDatetimeAdapter
which is based on Intl.DateTimeFormat in order to format date and Date.parse()
in order to parse date and relies on FdDatetime
as a datetime model. Date.parse()
is limitted in parsing of localised datetime strings as result it can not be used with locales diferrent from en-US
.
In order to parse localised date strings reliably we has to introduce MomentDatetimeAdapter
based on moment.js lib.
This new adapter must be treated as a standalone fundamental-ngx package to avoid including moment.js as a dependecy for the main fundamental-ngx/core pakage.
Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)
If this is a bug, please provide steps for reproducing it.
Please provide relevant source code if applicable.
Is there anything else we should know?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Docs - Moment.js
The Date object internally represents a Unix timestamp with millisecond precision. It offers functions that will convert to and from the system's local...
Read more >danielmoncada/angular-datetime-picker-moment-adapter - npm
Angular Date Time Picker (MomentJs Adpater). ... Start using @danielmoncada/angular-datetime-picker-moment-adapter in your project by ...
Read more >Cannot find module '@angular/material-moment-adapter'
I try importing the MomentDateAdapter as shown on the angular website but Visual Studio Code keeps complaining it cant find @angular/material- ...
Read more >Managing Dates and Times Using Moment.js - SitePoint
This article introduces Moment.js, a JavaScript library for working with dates and times.
Read more >Date picker, Time picker React components - MUI X
The date-library ( moment , dayjs , ...) manages the date manipulation. The adapter ( @date-io ) exposes your favorite date-library under a...
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 Free
Top 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
I vote for this, this is really needed feature !!!
PR ETA Monday Dec 28