added format option for calendar

added param for custom format in calendar()