Added rendering functionality for the date element