Adding format on Element and testing it on Date