I am inputting a date into datetime as such:
date('Y-m-d',strtotime('07/04/18'))
But it thinks the 04 is the day and 07 is the month. I will have no control of the date input but it will always be day/month/year when in the above mentioned format. Is there a way to tell date class that the month and day are the other way around?