Closed leeyspaul closed 6 years ago
@leeyspaul I have suggested few changes. Also can you tag the issue number in PR description
Ok I fixed the isDatePast
function as requested and then utilized moment().add(...)
and .subtract(...)
functionality for tests. Although the number is still hardcoded into add and subtract. Wasn't sure if this was wanted, do let me know!~
@leeyspaul This is awsome, just a small change and we are good to go.
@leeyspaul Cool. waiting for the checks to complete. Will merge it as soon as tests are completed.
Issue #5 Added functionality for checking past dates.
test/index.js
isDatePast
, utilizes current date from momentmoment().format(currentFormat)
and built inisBefore()
functionisBefore documentation: http://momentjs.com/docs/#/query/
Let me know if I've messed something up and I'll fix it up as soon as I can! Thanks~