angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

momentjs dates

Open demee opened this issue 11 years ago • 4 comments

Hi,

We are using moment.js dates in our project. Angular strap date picker is using plain javasript Date object. That makes us convert that date back and forward for each place where we use it.

Is there a way to use moment.js object, or is there a plan to support it? Would you accept a pull request with that support implemented? What would be the acceptance criteria for such support?

Thanks. demee

demee avatar Feb 05 '15 13:02 demee

Checkout commit https://github.com/mgcrea/angular-strap/commit/4050364609323ebad72c7463d23c39a719d0af96, which introduced the possibility to have other date parsers/formatters. @tepez might have some more details on how to do it.

vmlf01 avatar Feb 05 '15 17:02 vmlf01

Any luck implementing this? Maybe you can share a sample of how it works for others to see?

vmlf01 avatar Feb 13 '15 19:02 vmlf01

You should have a look at this plunker from https://github.com/mgcrea/angular-strap/pull/1163#issuecomment-63537117

mgcrea avatar Feb 14 '15 00:02 mgcrea

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 26 '19 08:01 lock[bot]