Adding Date element to custom class