How to call printDate method to output the dates?

Printable View