How to convert Text Date to Date in a Workflow

Figured out a solution to this. It requires using the Javascript to Bubble element on the form and updating this element via the Javascript. You also have to create an Event in the workflow and have the trigger event option set in the Javascript to Bubble element to trigger the event to update the database. What wasn’t logical is that the workflow can’t read the value in the Javascript to Bubble element, you have to pass the value to the workflow via an event.