• Creator
  • #4044651

    Reversing date format in php form

    by rob167 ·

    I have a simple php contact form with a date picker.
    However, the email received from the form reverses the date eg. instead of 20/3/2023 I get 2023/3/20.

    My backend form processor file:

    //Assign data form array
    $date = $_POST[‘bookdate’];

    // Construct email body
    $body_message .= ‘Preferred Date: ‘ . $date . “\r\n”;


You are posting a reply to: Reversing date format in php form

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use .

All Answers

Viewing 1 reply thread