I have a datepicker and I need to get the date to save it but I have no idea how to do it, if someone can, I attach the plugin code
<div class="col-md-4">
<div class="form-group">
<label for="fecha"> {{'Fecha' | i18n}}</label>
<input type="text" #fecha="ngModel" (blur)="convocatoria.fecha=fecha.value" [(ngModel)]="convocatoria.fecha" name="fecha"
id="fecha" class="form-control datepicker" [saUiDatepicker]="{
dateFormat: 'dd/mm/yy'
}" required>
</div>
</div>