Add missing dateMask.

This commit is contained in:
Alexis Lahouze 2018-06-14 09:27:48 +02:00
parent f33d7f1437
commit d082dae44c

View File

@ -97,6 +97,9 @@ import { OperationFormComponent } from './operationForm.component';
export class OperationEditComponent { export class OperationEditComponent {
public operation = new Operation(); 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( constructor(
private location: Location, private location: Location,
private router: Router, private router: Router,