How to transfer selected datetime to input field

Hi there,

I am trying out the datetime picker, started with the demo and got it to work more or less the way I want it. However, I can select a date and a time, but then I am kinda stuck. How can I use the selected date? Ideally I would transfer this to a hidden input field, so I can submit it as a form.

I couldn’t find this in the documentation.

Hope anyone would be able to help me further,

Kind regards,
Eelco

Hi Elco,

You can use the onChange lifecycle event to update your hidden input field. This event is triggered when the selected value is changed on the Datepicker and you will get the selected value in both text form and object form as well.

Let me know if this helps!