Update new date function

ı am using ionic 3 and ı should update new Date function in the constructor.

export class HomePage {
private eventDate: Date = new Date(‘July 17, 2019 03:24:00’);

constructor(){

//how can ı put new date into new Date function.

}
}

If I understood your question correctly then answer would be.

export class HomePage {
private eventDate: Date = new Date(‘July 17, 2019 03:24:00’);

constructor(){

//how can ı put new date into new Date function.
this.eventDate=new Date(‘July 18, 2019 03:24:00’);
}

thats work , thank you so much

1 Like