How to format time like this?

I want to format time like this.:point_right: Minutes:Seconds => 30:15

This block:point_down: is showing time like this => 30.15

Capturea2a

1 Like

open math block and there you will get it.

1 Like

Which block are you referring?

that block in which you can select the decimal number.

I have already used that block.

oh sorry i didnt read the question correctly…

you can get like that

first use a split block from text
and then use a join block.

and here you go.

give me sec i will show you how to do it,

1 Like

Yeah… You are right, but I thought there would be any direct block for that kind of time format.

2 Likes

That’s pretty cool.

1 Like

that will help i think.

1 Like

set Label1.Text to (replace all (text=("...")), (segment=(".")), (replacement=(":")));

3 Likes

:+1:Captureas

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.