Extracting Date And Time From A Date&Time Into Separate Form Fields

This guide will explain how to extract date and time values into separate form fields from a date&time field using JavaScript.

  1. Please add a Date&Time, Date and Time fields on the form:
image
  1. Next, please drag&drop a JavaScript field and copy the below code into it:
image
  1. Please change the field IDs in the JavaScript as shown below:
image

The field IDs can be copied when editing the fields:

image

Now once you capture a Date&Time field, the Date and Time fields will be automatically populated:

image

For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂