Splitting input text

Hi, I have a text field for users to input the time. If they enter “6:00 PM” (text, not time field), I want to convert it to GMT, so that it displays as " 123000". I stay in India, and GMT here “5.30” hrs behind India time. Any help is welcome.

What about:

let timeFormat = new Date(`January 01, 2000 ${$w("#hourInput").value}`).toUTCString().split(" ")[4];