Hi Everyone,
I need to check if a date is valid but not relative. Here's what I came up with:
if ( strtotime ( $date ) && strtotime ( $date ) == strtotime ( $date, 1 ) ) {
$its_all_good = true;
}
If that's helpful, then I'm glad I can help. If it's nuts, please let me know what the better way is.
Thanks,
Ben