This Fixes #986 : added function to show year in dates

@sujitbehera27 & @gordonwoodhull , Please review.