added more barchart code and date conversion ability in date extract