날짜 문자열이 "Tue, February 10, 2018"이고 다른 날짜 형식을 2018-10-02로 변환해야합니다. 그러나 그것은 2017을 보여준다. 왜?php 날짜 형식을 다른 형식으로 사용 하시겠습니까?
<?php
$checkin = "Tue, 2 October, 2018";
echo date("Y-m-d", strtotime($checkin));
//it show 2017-10-03 but i need 2018-10-02
?>
당신은 createFromFormat 기능을 사용하여 더 나을 것 - 참조 php docs http://php.net/manual/en/datetime.createfromformat.php – jeff