Is there any option to create the calender with datetime.
Check these posts  and  on how to create a calendar. You have useful sample codes in there. You can add any other time related dimensions to your master calendar.
Hope that helps.
Retrieving data ...