DateTools : Some tools to work with date and time

I recommend you to read this guide:

And still you have any query then post here.