This piece of code will take the date you give it, and convert it to its equivilant under the Hijri or Gregorian calendar according to your arguments. It will also enable you to set the language in which you wish to display the Gregorian dates (Hijri date will always be displayd in arabic).
C# public string ConvertDateCalendar(DateTime DateConv, string Calendar, string DateLangCulture) if (Calendar == "Hijri" && DateLangCulture.StartsWith("en-")) /// Set the date time format to the given culture - LAITH - 11/13/2005 1:04:22 PM - /// Set the calendar property of the date time format to the given calendar - LAITH - 11/13/2005 1:04:52 PM - /// We format the date structure to whatever we want - LAITH - 11/13/2005 1:05:39 PM - |









August, 03, 2006 12:41 PM