To get you started, you can use as "template" class Date from this tutorial: http://www.learncpp.com/cpp-tutorial/89-class-code-and-header-files/
And these links for date format manipulation:
http://stackoverflow.com/questions/3263661/format-a-date-in-c,
http://stackoverflow.com/questions/7753145/customize-date-format-in-c and
http://stackoverflow.com/questions/7135842/converting-date-class-to-string