Use Calendar as input for time

UI Components for Vue
Post Reply
etcons-it
Posts: 6
Joined: 23 Jan 2023, 01:02

03 Apr 2023, 11:44

How can we get time in format hh:mm:ss in v-model of Calendar using timeOnly attribute?

Code: Select all

                                <Calendar
                                    :showIcon="true"
                                    :showButtonBar="true"
                                    v-model="time"
                                    hourFormat="24"
                                    timeOnly
                                ></Calendar>
i expect to have in time variable something like '14:35:04'

do you have any ideas how to get the time in expected format?

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

19 Apr 2023, 16:27

You could add showSeconds property.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests