Hello guys.
I'm sure someone can help me out with this, I've been googling but they're not what I'm after.
On my site, I ask staff members to input dates in one of two ways:
Either YYYY-MM-DD
Or YYYY-MM-DD HH:MM:SS
I check various other things, but I don't have a function that actually checks they're entered the date properly (i.e with the correct amount of -'s, only digits and the correct amount...)
Does anyone have a function I can use for each of these and how I check it?
Thank you!