Get Time

Get Time

I have a date/time field in CRM.

I'm trying to use deluge to extract just the Date, just the Time, and just the AM/PM designation.

I cannot for the life of me get this to work... I've looked through all the deluge documentation but nothing seems to work...

Here's where I'm at...

info record.get("Field_Date_Time") outputs 2026-05-27T15:45:00-04:00

arrival_date = record.get("Field_Date_Time").toDate() outputs 27-May-2026
arrival_time = record.get("Field_Date_Time").toString("hh:mm") outputs 12:00
info "Hour: " + record.get("Field_Date_Time").getTime(12, true) outputs Hour: 12:00:00 AM
arrival_ampm = record.get("Field_Date_Time").toTime("a") outputs null

I must be doing something wrong. 

The time always results in 12:00, despite the date/time field being 3:45pm.

Anybody successfully extracted time + am/pm from a date/time field value using Deluge?