Determination of the day of the week ISO 8601. The day designated with 7 may also be counted as "0", by applying the arithmetic modulo 7, which calculates the remainder of a number after division by 7. Thus, the number 7 is treated as 0, 8 as 1, 9 as 2, 18 as 4 and so on. If Sunday is counted as day 1, then 7 days later (i.e. day 8) is also a Sunday, and day 18 is the same as day 4, which is a Wednesday since this falls three days after Sunday. The basic approach of nearly all of the methods to calculate the
Names of the days of the week of the week closely parallels that of the Latin system and is ordered after the "Seven Luminaries" (七曜 "qī yào"), which consists of the Sun, Moon and the five planets visible to the naked eye. The Chinese seem to have adopted the seven-day week from the Hellenistic system by the 4th century, although by which route is not entirely clear. It was again transmitted to China in the 8th century by Manichaeans, via the country of Kang (a Central Asian polity near Samarkand). The 4th-century date, according to the "Cihai" encyclopedia, is due to a reference to Fan Ning (範寧/范宁),