Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

How to show user age in angular-moment ? #296

Open
athimannil opened this issue Aug 15, 2017 · 1 comment
Open

How to show user age in angular-moment ? #296

athimannil opened this issue Aug 15, 2017 · 1 comment

Comments

@athimannil
Copy link

Is there any option in angular-moment to show the user age

Here is the current one
{{'1980-05-15'| amDifference : null : 'years'}} which show -37

Looking for solution without minus.

@athimannil athimannil changed the title How to show user age with amDifference ? How to show user age in angular-moment Aug 15, 2017
@athimannil athimannil changed the title How to show user age in angular-moment How to show user age in angular-moment ? Aug 15, 2017
@felixsusanto
Copy link

Hello, have you found the solution? you can times -1 to eliminate the minus sign
{{('1980-05-15'| amDifference : null : 'years') * -1}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants