Forum Discussion
Rivera523
5 years agoIdeator I
If i am getting what you want, you can make use of strtotime function. It converts datetime string passed to it to Unix timestamp which you can use for comparison.
If date from datepicker is 21-10-2015 then the function will return 1445385600 and if the date stroed in db is 2015-10-21 then also the function will return 1445385600 so you can comapre the two easiyl.