Hi Bruce,
I did search and also found several links. However this only worked for me when I used it in .items, but never when I defined a var in .rules
Seems I do something wrong
I got it running by converting DateTime to Joda and then to String.
Not sure this approach is to complex and I could achieve the same with a simpler step, but as least it works
val jStartTime = new DateTime((dStartTime as DateTimeType).zonedDateTime.toInstant.toEpochMilli)
logDebug("TEST","Start Date: " + jStartTime.toString("EEE yyyy-MM-dd'T'HH:mm:ss.SSSZ"))