add datePattern view helper