Timepicker doesn't just pick time when submitting to form.

My input:

Captura de Tela 2023-03-13 às 11.11.51.png

Result in form: 

Captura de Tela 2023-03-13 às 11.11.42.png


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team March 14, 2023 02:48 PM UTC

Hi Fernando,


To meet your requirements, we recommend using the following code:


    onSubmit(e) : void {

        console.log(this.skillForm.value.time.toTimeString());

    }


We have also attached a sample for your reference, which can be found here: https://stackblitz.com/edit/angular-bhuxst?file=src%2Fapp.component.html,src%2Fapp.component.ts



Regards,

Vinothkumar


Loader.
Up arrow icon