Change to datetimes for metadata