Currently need to add minutes (integer value) to a current time In order to achieve this, my idea is to edit the Current date time retrieve, obtain only the time info, as an integer to then add the minutes. I try with passing the CurrentDateTime retrieve to a string, and I’m stuck here because I need to get only the time value, with hours, minutes and seconds, and i cant obtain this so far. how can I get only the time in order to make the add operation? Since I can only add two values that are integer/long or decimals, how you do this? I review the documentation on https://docs.mendix.com/refguide/xpath-hours-from-datetime/, minutes and second, also the trim documentation, but doesn’t work, I feel like I’m over complicating myself, is it any simple way to do this? any suggestions?
asked
Constanza Pérez-yarza Ayala
2 answers
2
Hi Constanza,
if you’re doing this in a variable, it’s used like this: