The three weeks between 17 Tammuz and 9 Av are called Bein HaMetzarim — “between the straits”
This name comes from a verse in Megillat Eicha (1:3): גָּלְתָה יְהוּדָה מֵעֹנִי וּמֵרֹב עֲבֹדָה הִיא יָשְׁבָה בַגּוֹיִם לֹא מָצְאָה מָנוֹחַ כָּל רֹדְפֶיהָ הִשִּׂיגוּהָ בֵּין הַמְּצָרִים – “Judah wanders because of oppression and hard labor; she has settled among the nations and has found no rest; all her pursuers have overtaken her between the straits.” The word מצרים, “straits,” comes from the root צר, which has another meaning as well: straitened, difficult circumstances, or troubles. These weeks are associated with the destruction of the First and Second Temples, as well as the tragic events that accompanied their destruction.
During these days, special laws of mourning are observed, becoming stricter as the fast of 9 Av approaches. There are fairly significant differences between communities in their mourning customs.
The period of the “Three Weeks” begins on the eve of 17 Tammuz. Although the fast of 17 Tammuz begins only the following morning, mourning begins after sunset on the evening of 16 Tammuz, and everything that is forbidden during the Three Weeks is also forbidden on the night before the fast.
Haircuts and Shaving
Ashkenazi Jews do not cut their hair or shave throughout the entire Three Weeks, and it is customary to include even children in this prohibition. Among Sephardic Jews, there are different customs. Some follow the same practice as Ashkenazim in this regard, while others have haircuts until the beginning of the month of Av. (Everyone should follow the custom of their own community.) Rav Shlomo Zalman Auerbach wrote that a Sephardi studying at an Ashkenazi yeshiva may have his hair cut until the beginning of the month of Av, because the variety of customs in this matter is widely known, and even someone whose conduct differs from those around him is not setting himself against the community.
The prohibition on cutting hair applies to both men and women. Cutting any hair on the body is forbidden. Nevertheless, women who pluck or shave hair for beauty may do so even during the “Three Weeks,” since they do so neither for comfort nor for pleasure. As for children, it is not customary to cut their hair during these days either. (However, if for some reason there is an urgent need to cut a child's hair, this may be done before the beginning of the week in which 9 Av falls.)
A father and mother whose son is to be circumcised during these days, as well as the mohel and sandak, who participate in the circumcision, may have their hair cut before the beginning of the week in which 9 Av falls. However, this leniency applies only if they would have had their hair cut in honor of the circumcision at any other time as well.
According to the customs of all communities, cutting one's nails is permitted during these days. It is forbidden only during the week in which 9 Av falls.
Music and Dancing
Dancing and musical concerts are forbidden according to all customs beginning on 17 Tammuz. During this period, one may not play musical instruments or listen to music, even recordings. Even listening to a cappella singing (without music) is forbidden during this time.
In some Sephardic communities, it is customary to play musical instruments at meals celebrating the fulfillment of a mitzvah, such as a circumcision. For Ashkenazi Jews, this is forbidden. Nevertheless, singing is permitted at such meals.
Practicing or learning to play musical instruments is also forbidden. If for some reason an urgent need arises, one should consult a competent rabbi.
The Shehecheyanu Blessing
Someone who buys new clothing or eats a fruit they have not yet eaten that season must recite the blessing Shehecheyanu—“Blessed are You, L-rd our G-d, King of the universe, Who has kept us alive, sustained us, and brought us to this time.” However, it should not be recited throughout the three weeks between 17 Tammuz and 9 Av. The reason is that the three weeks of bein hametzarim are days fraught with calamity. The blessing “brought us to this time” is therefore inappropriate.
According to one opinion, this blessing may be recited on Shabbat and Rosh Chodesh even during the Three Weeks.
To avoid having to recite this blessing, one should refrain from eating fruits one has not yet tasted that season, as well as from buying new items of clothing that bring joy. Someone who has already bought fruit that may spoil before the end of the Three Weeks should wait until Shabbat and recite the blessing Shehecheyanu over it on Shabbat. If the fruit will not keep even until Shabbat, it may be eaten on another day. (Nowadays, however, such a situation is fairly unlikely. Most fruits can be kept in the refrigerator for at least a few days.)
Buying New Clothing
There is also some disagreement among the sages concerning new clothing. According to the Mishnah Berurah, between 17 Tammuz and the beginning of the month of Av, the blessing Shehecheyanu may also be recited on Shabbat over new clothing. However, someone who wishes to observe the tradition in accordance with all opinions should refrain altogether from buying and wearing new clothing during the Three Weeks.
All of this applies only to clothing whose purchase brings particular joy. There is no reason to refrain from buying shirts, underwear, inexpensive shoes, or other minor items.
An Inauspicious Time
Although the Torah obligates us to safeguard our well-being and health at all times, during the Three Weeks it is customary to take greater care than usual to avoid any danger. For example, someone who normally swims in the sea or a pool should refrain from doing so during the Three Weeks. All the more so because it brings joy that is out of keeping with the spirit of the Three Weeks.
During these three weeks, we should mourn the exile of the Shechinah and the destruction of the Temple. We must remember that the Second Temple was destroyed because of baseless hatred between people. During these days, we should therefore pay particular attention to restoring peace, harmony, and love. It is written that someone who sincerely mourns the destruction of Jerusalem and the Temple will merit to witness its joy.
(Based on Rabbi Yehuda Chesner’s book Shaarei Nechamah, 2:1:1-17,2:1-5)