How to complete my formly-time component to get value and make output

I´m trying to make a formly time component based on ngx material timepicker.
My problem is how to bind the user value and output this value as a timestamp like the @Input().
I´m very confused with few examples found on the Web.

This is my code:


import {Component, Input, OnInit} from '@angular/core';
import {FieldType} from '@ngx-formly/material';
import {UserService} from '../../../common/services/user.service';
import {formatDate} from '@angular/common';
import {FormControl} from '@angular/forms';

  selector: 'ui-formly-time',
  templateUrl: './formly-time.component.html',
  styleUrls: ['./formly-time.component.scss']
export class FormlyTimeComponent extends FieldType implements OnInit{
  @Input() timestamp: number;
  value: string;
  itemControl = new FormControl();
  constructor( public currentUser: UserService ) {
    this.timestamp = 1589175000000; //hardcoded for the moment
  ngOnInit() {
    console.dir( );
    this.value = formatDate( this.timestamp, 'HH:mm', );
    this.itemControl.setValue( this.value );


<ngx-timepicker-field [format]="24"  [defaultTime]="value" [formControl]="itemControl"></ngx-timepicker-field>

Someone can help me ?

Source: Angular Questions