asheerbad changes in compairdate function