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.