Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

IONIC time input

Hi,

I've got an input component set to type "time" on my ionic project and need to know how to set this component to only display HH:mm

I've read several blogs on this that suggest using:

displayFormat = "HH:mm"

but have not been successful when using it in the builder, as the entry displayformat seems to be ignored
Any ideas?

The screenshot below shos "ng-" in front, I tried both :-)
Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

IONIC time input

Hello,

The input component with a type = "time" has a default format HH:mm. Please clarify, what format do you have there?

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

IONIC time input

the problem is the display, it shows HH:mm:ss:ms

But, I have found that if I set the seconds and milliseconds of the time variable to 0, they do not show - so that solves the issue that way.

thanks.

Return to “Issues”