I am building a component (html, css, spec.ts, ts) in angular in which I always want endDate > startDate. I have followed this link https://material.angular.io/components/datepi
Binding with [min] works perfect for any date
.ts file
//today's date todayDate:Date = new Date(); //any date someDate: Date = new Date(anydate);
.html file