Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

achieve100's avatar

Conversion failed when converting datetime from character string.

Hello, I need help to change the correct datetime format before I can insert to mssql. But, I don't know how. Thanks.

0 likes
1 reply
Snapey's avatar

you need to sort the form out first. You should probably name the fields hours and minutes. at the moment they share the same name.

also, your old function. you cannot add this to the select element itself it must be selected against the correct option

Please or to participate in this conversation.