blob: 10f38531af5ade0feb1a72cd7457fdf5b83abfcb [file] [log] [blame]
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();
}
}