Hello everyone ...
I am developing a function to my theme, and I walk around with a existential question...
What is the best way to compare dates? I have resolved the matter to compare start date with the current date, but I just do not like what I did ... strtotime($datestart)... $datestart <= $today... and blah! blah!...
I know, I know, with SQL... more blah! blah!... but that's not enough for me , because if we make changes in a multi-layer environment, we should not have to go down to work with SQL? Moreover, as I control the user did not write anything? ...
Suggestions welcome ... and discrepancies too!
P.S.: Yes, I have comprehensively searched... but not found any related documentation/post...