Badhon Khan
Badhon Khan

Reputation: 21

How to display value in Timepicker while update existing data?

Actually, I want to update the timepicker value but ant design can't display defaultValue. How I can display my database time/value in timepicker ? I am using ant design framework. enter image description here

Upvotes: 1

Views: 147

Answers (1)

Nic Mai
Nic Mai

Reputation: 11

There is no code in codepen. You can refer the code on Ant Design. I guess the variable departingTime is the cause.

    <TimePicker defaultValue={moment('12:08:23', 'HH:mm:ss')} />

Upvotes: 1

Related Questions