What format does the date for a date picker field need to be when submitted through the API

  • alkglobalmarketing
    Asked on December 16, 2020 at 6:24 AM

    Hello i am trying to add a submission to a form through your API.

    But i cannot find any documentation for how the date should be formatted when sending the submission through the API

    i have tried several common ones but the field continues to be empty in all my submissions

    Any guidance would be appreciated

  • Mike_G JotForm Support
    Replied on December 16, 2020 at 7:44 AM

    Based on some tests, the format depends on how the Date field in your form is set up.

    With this setup:

    Dash Separator

    1608122358 5fd9fff622fb9 zt201216 072252 Screenshot 10

    Litemode; MM-DD-YYYY format;

    1608122383 5fda000f43fef zt201216 072259 Screenshot 21

    Here's the result:

    1608122424 5fda0038924ec zt201216 072938 Screenshot 32

    But with this setup:

    Slash Separator

    1608122457 5fda0059e6ebc zt201216 073351 Screenshot 43

    Disabled Litemode; YYYY-MM-DD format;

    1608122508 5fda008c17cc1 zt201216 073358 Screenshot 54

    Enabled Time Field;

    1608122535 5fda00a7bc0e6 zt201216 073406 Screenshot 65

    Here's the result:

    1608122604 5fda00ecec790 zt201216 073532 Screenshot 76

    I hope this helps. Feel free to let us know if you need any further assistance. Also, if you are looking for the submission date format, notice that it didn't change for both my test submissions.