updated: dates comparison