Date issue, user date selected different from date in DB

Why the date selected by user in aras form is different from the date in database?

Parents
  • 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.

    myloweslife

Reply
  • 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.

    myloweslife

Children
No Data