added type attribute to date