Change span to datetime on index