Custom Fields
Support General Date format when editing existing post

  • Creator
  • #28174
    Resolved Stephen C.

    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
  • #28190
    Long Nguyen

    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.

    Stephen C.

    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.