Hi Everyone,
Using the code below, is there a way to have GetHour and GetMinute display a "0" in front of the string if the returned value is less than 10? If the converted hours = "9" for 9 in the morning, I would like the returned string to have "09" in it.
Thanks
Using the code below, is there a way to have GetHour and GetMinute display a "0" in front of the string if the returned value is less than 10? If the converted hours = "9" for 9 in the morning, I would like the returned string to have "09" in it.
B4X:
Dim strMyTimeString As String = _
DateTime.GetHour(lngMyTics) & ":" & DateTime.GetMinute(lngMyTics)
Thanks