Custom Fields
Re-Envisioned
Support General Date format when editing existing post

  • Creator
    Topic
  • #28174
    Resolved Stephen C.
    Participant

    I'm using a date field and have set the dateFormat in the js_options. That works great. However, when editing an existing post, the existing date is formatted displayed as it was saved in the database. Is there currently a way to have the existing date formatted using the dateFormat parameter when the form loads?

    If not, I can just write some javascript code to do it, but I wanted to check to see if there was an existing way to do it before I do that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #28190
    Long Nguyen
    Moderator

    Hi Stephen,

    I'm afraid there is no option to change the existing date formatted when editing a post. You can create your own JS code to do that or PHP code to re-update all field values in the database.

    #28200
    Stephen C.
    Participant

    Okay, thanks. That's easy to do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.