Thanks Emma and Don. It worked. I didnt add that block.
I think we can modify this block and make it more informative. Currenlty I tested it out in moodle 2.7 , it is not able to print all sessions date and neither does it fetch course id.
Some work on this block and it will be of great help to community. I will try to make some changes and update patch soon.
Thanks.