format data from calendar