Add Minutes to a TimeField in Axapta

Hi Friends

Can u please tell me how to add Minutes to Time Field in Axapta

Eg: Time 11:00: 00 am.If we add 20 then output shld be

11:20:00 am

Time is represented as number of seconds so you can use normal arithmetic, just multiply the number of minutes by 60. For example:

``

timeOfDay t = timeNow();
info(time2strHM(t + 10 * 60));

``

For utcDateTime type, you could use DateTimeUtil::addMinutes().

Hi Martin

Thanks a Lot for Quick Reply

hi,

this is hardcoded right…can u do it using any functions? I have a Time field…24 hours format and its not utcDateTime.

Thanks in advance