I want to check whether two dates are equal, where equal means they have the same value to the minute. I don't want to compare the seconds value.
Ex:
// should be equal
11/12/17 11:19:29
11/12/17 11:19:03
// not equal
11/12/17 11:19:59
11/12/17 11:20:00
One way I'm thinking of doing it is getting the time components and going through each one. But I'm wondering if there's a faster or cleaner way.