Date element class implementation