Trying to find a way to validate if an input date chosen by the user, is older than the current date - 10 days. However, I\'m stuck on this bit of code.
var d