question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Core: Introduce MomentDateTime Adapter

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fkolarcommented, Dec 4, 2020

I vote for this, this is really needed feature !!!

0reactions
skochariancommented, Dec 24, 2020

PR ETA Monday Dec 28

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found