in reply to
Your title is very close to the name of a well-known module for working with dates. I can also tell you that what you want is as easy (or Ez) as falling off a log.
This site offers all sorts of help for students. If you don't find something useful in Tutorials, try Super Search.
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (76 votes),