• Resolved maprophetie

    (@maprophetie)


    Hi, I have a problem with the date format.

    I changed the type of “user_submitted_content” to type=”Date” but I don’t know how to change the format when the post is submitted.

    Users can fill the field with a “DD/MM/YYYY” format, but when they submit the post I receive a “YYYY-MM-DD” format in the content. How can I change that to let the “DD/MM/YYYY” ?

    Here is my code :

    <label for=”user-submitted-content”><?php esc_html_e(‘Date de réalisation de la prophétie’, ‘usp’); ?></label>
    <input id=”user-submitted-content” name=”user-submitted-content” type=”Date” placeholder=”<?php esc_attr_e(‘Date’, ‘usp’); ?>”<?php if (usp_check_required(‘usp_content’)) echo $usp_required; ?> class=”usp-textarea”>

    Thank you very much !

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help. Can you let me know where you are getting “user_submitted_content”? It is not a string that is included anywhere in the plugin (that I could find).

    Thread Starter maprophetie

    (@maprophetie)

    Hi, thanks for your help !

    I get this part in views > submission-form.php

    Did you do something ? Since I posted this topic, the dates are in the right format as you can see here in the last posts : https://maprophetie.fr

    Plugin Author Jeff Starr

    (@specialk)

    Thanks, but I still cannot see any string, “user_submitted_content”. On exactly which line are you seeing that string?

    And no I have not made any changes since my previous post. Glad to hear it’s working as desired now, so gonna go ahead and mark this thread as resolved. Feel free to post again with any further infos or questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date format’ is closed to new replies.