export class ListHelperTool { | |
public checkIfToday( compareDateString: string ): boolean { | |
const now = new Date(); | |
const compareDate: Date = new Date( Date.parse(compareDateString) ); | |
if ( !compareDate ) { | |
return false; | |
} | |
return compareDate.getFullYear() === now.getFullYear() && | |
compareDate.getMonth() === now.getMonth() && | |
compareDate.getDate() === now.getDate(); | |
} | |
} |