Date format
-
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]
- The topic ‘Date format’ is closed to new replies.