Horje
how to compare two date in typescript Code Example
how to compare two date in typescript
for(let k = 0; k < this.bookingDetailsArrayRealObject.length; k++){
        let dateCheckOut = this.bookingDetailsArrayRealObject[k].package.chackout;
        let dateToBeCheckOut = new Date(dateCheckOut);
        let today = new Date();
        //let today_test = new Date();
        if(this.bookingDetailsArrayRealObject[k].status){
          if(dateToBeCheckOut < today){
            this.bookingIdsToBeUpdated.push(this.bookingDetailsArrayRealObject[k]._id);
            window.alert('true');
            console.log(today.toDateString());
            console.log(dateToBeCheckOut.toDateString());
            console.log(this.bookingDetailsArrayRealObject[k]);
          }
        }
      }




Typescript

Related
how to use if statemnts c# Code Example how to use if statemnts c# Code Example
paragraph dots after 2 lines css Code Example paragraph dots after 2 lines css Code Example
c# copy the elements of a list to another list Code Example c# copy the elements of a list to another list Code Example
how to pass data to another page in ionic 3 Code Example how to pass data to another page in ionic 3 Code Example
google sheets format number as duration formula Code Example google sheets format number as duration formula Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7