Split template in date directive.