Timepicker is not recognizing 00:00 and blank data from REST API

Hello,

I have one input field on my web page. The data is populated through the response of REST API. But the problem is when the response has 00:00 then the timepicker widget is showing the prompt of input field as "HH:MM" instead of showing 00:00 & when the response has blank data then the timepicker widget is showing current time instead of prompt HH:MM.

Can someone provide the solution to this.


Thanks,

Nishant Pareek

HI Nishant,

The timepicker treated 00:00 as blank value thats why the prompt is showing "HH:MM" in both cases.

check with another values.


Thanks

Rahul Sahu

Rahul Sahu wrote:

HI Nishant,

The timepicker treated 00:00 as blank value thats why the prompt is showing "HH:MM" in both cases.

check with another values.


Thanks

Rahul Sahu

Hi Rahul,

First of all thank you for your response.

Actually it is not showing "HH:MM" in both the cases. As i mentioned earlier, if the API response has 00:00 then it is showing "HH:MM" prompt and if response has blank then it is showing "Current time".


Thanks,

Nishant Pareek