Well, the Hijri date 5 Rajab 1240 corresponds to the Gregorian date Tuesday, 22 February 1825. This date lies in the seventh month of the Hijri year 1240 AH, which is Rajab of 1240 AH. Both this Hijri and Gregorian date occur on the single day that is Tuesday without any doubt. The Arabic date 1240/07/05 is calculated using the Umm Al-Qura calendar and the sighting of the moon. One thing to remember is that this Arabic date may occur on different Gregorian date depending upon the region and country and obviously the moon.
If you are still not sure about the date then you can use our Arabic date converter.
The following is the conversion of the Gregorian date 22 February 1825 to its equivalent Arabic date.
The following is the conversion of the Arabic date 5 Rajab 1240 AH to its equivalent Gregorian date.
إِلَّا ٱلَّذِينَ عَٰهَدتُّم مِّنَ ٱلْمُشْرِكِينَ ثُمَّ لَمْ يَنقُصُوكُمْ شَيْـًۭٔا وَلَمْ يُظَٰهِرُوا۟ عَلَيْكُمْ أَحَدًۭا فَأَتِمُّوٓا۟ إِلَيْهِمْ عَهْدَهُمْ إِلَىٰ مُدَّتِهِمْ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَّقِينَ
Excepting those of the idolaters with whom ye (Muslims) have a treaty, and who have since abated nothing of your right nor have supported anyone against you. (As for these), fulfil their treaty to them till their term. Lo! Allah loveth those who keep their duty (unto Him).
Surah At-Tawba(9:4)