diff --git a/src/operations/operationEdit.component.ts b/src/operations/operationEdit.component.ts index 125d728..20a81ac 100644 --- a/src/operations/operationEdit.component.ts +++ b/src/operations/operationEdit.component.ts @@ -97,6 +97,9 @@ import { OperationFormComponent } from './operationForm.component'; export class OperationEditComponent { public operation = new Operation(); + //dateMask = [/\d{4}/, '-', /0[1-9]|1[0-2]/, '-', /[0-2]\d|3[0-1]/]; + dateMask = ['2', '0', /\d/, /\d/, '-', /[0-1]/, /\d/, '-', /[0-3]/, /\d/]; + constructor( private location: Location, private router: Router,