public/subjects/date-is
davhojt b553cb6712 docs(date-is): correct grammar 2022-05-31 08:33:03 +02:00
..
README.md docs(date-is): correct grammar 2022-05-31 08:33:03 +02:00

README.md

Date Is

Instructions

Create the following functions:

  • isValid: accepts a Date, and returns false if the Date is invalid.
  • isAfter: accepts two Date arguments, and returns true if the first is greater then the second.
  • isBefore: accepts two Date arguments, and returns true if the second is greater than the first.
  • isFuture: accepts a Date, and returns true if the Date is valid, and is after than the present date.
  • isPast: accepts a Date, and returns true if the Date is valid, and is before the present date.

Notions