Which of the following is the best way to convert one date format into another; portable for all PHP versions?
Answer
Correct Answer: $myDateTime = DateTime::createFromFormat('Y-m-d', $dateString); $newDateString = $myDateTime->format('m/d/Y');
Explanation:
Note: This Question is unanswered, help us to find answer for this one