We know that this took place sometime during the early part of the 40th year since the great Spanish commentator Ibn Ezra (1092–1167) understands Numbers 20:1 to refer to the beginning of the 40th year of the Exodus.