The Ascension took place in the Makkan period before the Hijrah. The conventional account mentioned here associates the night with 27 Rajab and treats the journey as miraculous.
Its purpose was not ordinary travel but witnessing divine signs and receiving extraordinary gifts and obligations.