Add missing dateMask.

This commit is contained in:
Alexis Lahouze 2018-06-14 09:27:48 +02:00
parent f33d7f1437
commit d082dae44c
1 changed files with 3 additions and 0 deletions

View File

@ -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,