transform into calendar directive