date check implemented