Forge Component
(38)
Published on 22 Apr by Marcelo Ferreira
38 votes
Published on 22 Apr by Marcelo Ferreira

Hello, 


I would like to mask a time in 12-hour format (5:32 PM), but I can only get it to mask in 24 hour format (17:32).  I'm using "HH:MM" as my mask which gives me the 24-hour.  I've tried using "hh:MM", "hh:MM tt", "hh:MM pp" but none of those work.  

Is there a way to mask in 12-hour format?

Hi Greg,

Just tested this and works fine

What are the results you are getting?

Regards,

Marcelo

If I use "hh:MM TT" I get 12:MM TM in my input.


I'm also using a ClockPicker widget, so I removed it incase it was causing problem, but even without the ClockPicker it still displays 12:MM TM.  And it's not consistently wrong either.  Sometimes it's 12:4M TM, 1h:MM TM, or 10:MM TM.  Reloading the page seems to result in a different display text.


The variable associated with the input is of type Time, in case that makes a difference.

Hi Greg,

I did some tests and the way the component is working right time mask will never work. It needs some changes and I really don't know when I will be able to do them. 

I will let everyone know when this is fixed.

Regards,

Marcelo