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

  • Profile Image
    alkglobalmarketing
    Asked on December 16, 2020 at 06: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

  • Profile Image
    Mike_G
    Answered on December 16, 2020 at 07: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

    Litemode; MM-DD-YYYY format;

    1608122383_5fda000f43fef_zt201216_072259

    Here's the result:

    1608122424_5fda0038924ec_zt201216_072938

    But with this setup:

    Slash Separator

    1608122457_5fda0059e6ebc_zt201216_073351

    Disabled Litemode; YYYY-MM-DD format;

    1608122508_5fda008c17cc1_zt201216_073358

    Enabled Time Field;

    1608122535_5fda00a7bc0e6_zt201216_073406

    Here's the result:

    1608122604_5fda00ecec790_zt201216_073532

    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.