The examples were missing return statements so I changed them to the new ES6 arrow function syntax (implicit returns).
Also changed the argument type in the parse function from "string" to "any" as it was causing a red squiggly line in PhpStorm (Argument type string is not assignable to parameter type Date)
The examples were missing return statements so I changed them to the new ES6 arrow function syntax (implicit returns).
Also changed the argument type in the parse function from "string" to "any" as it was causing a red squiggly line in PhpStorm (Argument type string is not assignable to parameter type Date)