Hi everyone,
I'm using the material date and time picker to select a time of 2am and it gives 2:0. I would like to format the picked time as 02:00.
Here's the coding I'm using. Can you show me what additional coding is needed to format the number?
Thanks.
I'm using the material date and time picker to select a time of 2am and it gives 2:0. I would like to format the picked time as 02:00.
Here's the coding I'm using. Can you show me what additional coding is needed to format the number?
Thanks.
B4X:
Sub TimePicked_onTimeSet(hour As Int,minute As Int, second As Int)
LabelSilentPeriod1Start.Text = hour & ":" & minute
End Sub