It’s very easy to add Calander. But you did not tell that which language you are using.
In all languages it is there but implemented somewhat in different way.
For example in PHP there is function in-built, i mean there is one API.
I don’t exactly remember exactly. But can see in any book.
It is also given in “PHP in Nutshell” by Orelly.