PHP/MySQL time date variable calculations


PHP/MySQL time date variable calculations



I have 2 variables, one a date like 06/02/2018 and a day interval that changes. I need to add the two together, then find the difference from the current date.



I've read carbon can help with this but I'm stuck.



say the vending machine was last filled on 6/20/2018 and it needs to be refilled every 30 days. I need to find out how many days from today it needs to be serviced.



Please help





Question is a bit unclear. Please explain more...
– Roshana Pitigala
Jul 1 at 5:35





This API was deprecated a very long time ago, so this is surely of archaeological interest only?
– Strawberry
Jul 1 at 6:24









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

C++ thread error: no type named ‘type’ MINGW

Decreasing a static image progress bar horizontally in SDL

How to input without newline? (Python)