How to show only hours and minutes of a date-time field in an alert box

How to show only hours and minutes of a date-time field in an alert box

Hello,

I have a form with a date-time field.
When I click the 'Preview Mode' (see the image), an alert box loads a preview mode of a submit view
As you can see when I have in the time field the format 'hh:mm:ss' it works fine




But when I change it to "hh:mm" then it shows me "00:00:00"

Image 2




The deluge which I am using in order to load this value is input.Date_Time.toTime()

Is there any way to solve this issue?