Created
July 1, 2022 05:48
-
-
Save jpalala/4c91d09abecfee33fd5718ba6999bf79 to your computer and use it in GitHub Desktop.
get-relative-date blah blah blah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...require('moment') library | |
if ( isRelative ) { | |
moment(dueAt).diff(moment(Date.now()), 'days') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment