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.
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (93 votes),