Create DateTime from String

hey everybody,
i want to convert a string like “06:30” to a DateTime variable in a rule, but everything i tried so far didnt work :(.
Does anyone have a hint for me?


In ECMA I use something like:

var localTime = Java.type("java.time.LocalDateTime");
var  myNewTime=myNowDateTime.withHour(Hour).withMinute(Minute);

Perfect, thats what i searched for :slight_smile: