79495131

Date: 2025-03-08 22:44:27
Score: 2
Natty:
Report link

HTML <input type="date" name="ff" [value]="setFechaP(ff)" [(ngModel)]="ff" class="form-control form-control-sm text-center">

TS import { formatDate } from '@angular/common';

setFechaP(ff:any){if(ff){ff=formatDate(new Date(ff).getTime(),'yyyy-MM-dd','en','+00');}}

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Armando Torres