We don’t know here what you’ve tried, what you are having difficulty with, and what exactly you’re trying to do (by valid, do you mean any valid date? Or is there a specific rule about what is and is not a valid date? In what timezone? etc). A single screenshot doesn’t really help anyone here understand any of that.