HTML5 Data Bindings Formatter Support Product Page

minutes to hours:minutes

Asked 24 Jun 2014 19:03:24
1
has this question
24 Jun 2014 19:03:24 Steven Milo posted:
Is there a way to convert minutes to hours:minutes? thanks

Replies

Replied 24 Jun 2014 20:40:31
24 Jun 2014 20:40:31 Steven Milo replied:
this works for getting minutes to Hours and Minutes but has a glitch.
{{connectionDuration}} {{(connectionDuration /60).floor( )}}:{{(connectionDuration %60)}}

The problem is using the formatter. When I put a % in through the wizard it comes back as {{(connectionDuration ')}} instead of {{(connectionDuration %60)}}. If i put the % manually then I cannot use the wizard on the page anymore. Get error "you have not selected anything".

Replied 27 Jun 2014 14:39:00
27 Jun 2014 14:39:00 Steven Milo replied:
any ideas?
Replied 01 Jul 2014 08:51:43
01 Jul 2014 08:51:43 Teodor Kuduschiev replied:
Hello Steven,
What is the purpose of using %60 ?
Replied 25 Jul 2014 23:06:31
25 Jul 2014 23:06:31 Steven Milo replied:
To get minutes to Hours:Minutes. The /60 gives you hours and the %60 gives the minutes. Is there a better way?

Replied 28 Jul 2014 07:59:03
28 Jul 2014 07:59:03 Teodor Kuduschiev replied:
Hi Steven,
Please use: %60 in the UI of the Formatter.
% is the escaped "%" which should not cause any issues.
Replied 29 Apr 2015 13:02:37
29 Apr 2015 13:02:37 Steven Milo replied:
Hi,

Have another issue with this. I can get minutes, but if the total minutes is say 50 minutes. it just shows as 5 without the zero. Any way around this? This is what I am using {{(ElapsedTime %60)}}. How can I add the zero?

thanks

Reply to this topic