Nosean
1 year ago

German Date substract 1 Day

Posted 1 year ago by Nosean

Hey Guys,

I have a german date 12.09.2018. Now I would like to deduct 1 day so 11.09.2018.

$date = $request->deliverydate;
$date_1 = date('dd.mm.Y', strtotime('-1 Day', strtotime('$date')));

My Result is: "3131.1212.1969"

what am I doing wrong?

Please sign in or create an account to participate in this conversation.