Android Question How to make an Hour mask without a library?

Daniel44

Active Member
Licensed User
I need to make a mask for an Hour in a EditBox in HH:mm Format . I've been looking for this but there are some libraries that don't work fine or with a DateTime format yyyy-MM-dd HH:mm and I don't need that format I just need HH:mm. I've seen scripts for date but I need just HH:mm . I tried with this

B4X:
Dim IME As IME
    
    IME.SetCustomFilter(edtHoraIni,edtHoraIni.INPUT_TYPE_TEXT,"0123456789:")

but on the device the ":" is missing. I guess I'm wrong or doing something wrong. Thank you
 
Top