Well, the Hijri date 21 Muharram 1227 corresponds to the Gregorian date Tuesday, 4 February 1812. This date lies in the first month of the Hijri year 1227 AH, which is Muharram of 1227 AH. Both this Hijri and Gregorian date occur on the single day that is Tuesday without any doubt. The Arabic date 1227/01/21 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 4 February 1812 to its equivalent Arabic date.
The following is the conversion of the Arabic date 21 Muharram 1227 AH to its equivalent Gregorian date.
فَرَدَدْنَٰهُ إِلَىٰٓ أُمِّهِۦ كَىْ تَقَرَّ عَيْنُهَا وَلَا تَحْزَنَ وَلِتَعْلَمَ أَنَّ وَعْدَ ٱللَّهِ حَقٌّۭ وَلَٰكِنَّ أَكْثَرَهُمْ لَا يَعْلَمُونَ
So We restored him to his mother that she might be comforted and not grieve, and that she might know that the promise of Allah is true. But most of them know not.
Surah Al-Qasas(28:13)