mirror of https://github.com/01-edu/public.git
904 B
904 B
Date Is
Instructions
Create the following functions:
isValid
: accepts aDate
, and returnsfalse
if theDate
is invalid.isAfter
: accepts twoDate
arguments, and returnstrue
if the first is greater then the second.isBefore
: accepts twoDate
arguments, and returnstrue
if the second is greater than the first.isFuture
: accepts aDate
, and returnstrue
if theDate
is valid, and is after than the present date.isPast
: accepts aDate
, and returnstrue
if theDate
is valid, and is before the present date.