Why the date selected by user in aras form is different from the date in database?
Why the date selected by user in aras form is different from the date in database?
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.
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.