Twelfth Night is a festival in some Christian churches that marks the coming of the Epiphany, the day when the magi were said to have visited the Christ child. Depending on when you start counting (i.e., Christmas Day or December 26), Twelfth Night is either January 5 or January 6. On the calendar I use, Epiphany 2018 is January 6 and Twelfth Night is January 5.
The celebration of Twelfth Night came about during the Council of Tours in 567, which “proclaimed that the entire period between Christmas and Epiphany should be considered part of the celebration, creating what became known as the twelve days of Christmas, or what the English called Christmastide.”~ https://en.wikipedia.org/wiki/Twelfth_Night_(holiday)
“The magi were those well-versed in mystical knowledge, the wise men those well-versed in non-mystical, so that the facts known to the magi were interior ones, while those known to the wise men were exterior. This explains why such factual knowledge is meant in the Word by those two kinds of men. But after they began to misuse the Church’s interior factual knowledge and to turn it into magic, ‘Egypt’, and likewise ‘the magi of Egypt and its wise men ‘, began to mean factual knowledge that led to perversions.
 The magi in those times had a knowledge of the kinds of things that belong to the spiritual world, and in their teaching about these they employed the correspondences and the representatives known to the Church. For this reason, many of those magi also communicated with spirits and learned the arts of illusion which they used to perform miracles that involved magic. But those who were called the wise men had no interest in anything like this. Instead they provided the answers to hard questions and taught about the causes lying behind natural things.
 The fact that the term ‘magi’ was applied to those who had a knowledge of spiritual realities, and who also for that reason received revelations, is clear from the magi who came from the east to Jerusalem, asking where the King of the Jews was to be born and saying that they had seen His star in the east and had come to worship Him, Matt. 2:1, 2.~Arcana Coelestia, Swedenborg (Elliott), no. 5223 (1, 2, 4)