Time Mask on textedit

can anyone point me in the right direction on what mask format I have to define so a user can only enter time values?

I tried :
##:##
99:99
00:00

They all provide different result but not the result I would be expecting a properly formatted time string.
like : 14:23 or 09:02

The format works with 00\:00 but I can’t get the mask to work.
Any help is really appreciated

You will have to use both TextEdit.mask and TextEdit.format together to make it work the way you want. Some will suggest plugins which is certainly the easiest way to do it. I think somewhere someone created a subclass called timefield as well as datefield but not sure where I saw them it was years ago.

[quote=88107:@Paul Ross]can anyone point me in the right direction on what mask format I have to define so a user can only enter time values?

I tried :
##:##
99:99
00:00

They all provide different result but not the result I would be expecting a properly formatted time string.
like : 14:23 or 09:02

The format works with 00\:00 but I can’t get the mask to work.
Any help is really appreciated[/quote]
Joseph is right on as I had to create all the code you are asking for above when I wrote the Calendar/Time Chooser.

thank you both gentleman for the reply.

@Mike, I happened to be looking earlier today at you’re CalendarTimeChooser.

Very Impressive work, especially putting it out there as an open source project.
Thank you for that.