0

I am working on magento2 i want date of next day from current date.

  • Do u think is it possible to have records with created_at greater then current time ?? – Yash Shah May 4 at 7:50
  • see my updated question – werwer May 4 at 10:08
0

Try this code

$currentDateTime = new \DateTime();
$currentDateTime->modify("+1 day");
$dateTime = $currentDateTime->format('Y-m-d H:i:s');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.