Add Minutes to datetime as String

Hi all,

I have the following Problem.
I have a string which includes the Start time of an activitiy and I want to reduce it of dynamically factor, like 30 min. The Start time is a string, so I first covert it into datetime and than reduced it by the factor.

For Example:

Time = β€œ14:00”
Reduced time = convert.todatetime(Time).addMinutes(-20)

The calculation works correct but the timeformat is in US. I Need it in European Format, that means 13:40 instead of 01:40

How can I tranform it into the Right Format ?



Try this :
FormatDateTime(Reduces_Time, DateFormat.ShortTime)

1 Like

Hi @billeMG

It should work with this format HH:mm.

1 Like