Announcements
No record found.
static date hijri2GrDate(DAPHijridateStr hijriDateStr) { System.Globalization.CultureInfo arCul = new System.Globalization.CultureInfo("ar-SA"); System.Globalization.CultureInfo enCul = new System.Globalization.CultureInfo("en-US"); System.DateTime tempDateTime; str strTemp; System.String[] arr; date grDate; ; //all expected dates formats arr = new System.String[18](); arr.SetValue("dd/MM/yyyy", 1); arr.SetValue("dd-MM-yyyy", 2); try { tempDateTime = System.DateTime::ParseExact(hijriDateStr, arr, arCul, System.Globalization.DateTimeStyles::AllowWhiteSpaces); } catch { error("Unexpected Hirji date format."); return datenull(); } strTemp = tempDateTime.ToString("dd/MM/yyyy"); grDate = str2date(strTemp, 123); return grDate; }
[Control("String")] class DTPropertyLine_DTHijriDate { /// <summary> /// /// </summary> /// <returns></returns> public boolean modified() { boolean ret; DTHijriDate hijriDateStr; ret = super(); DTPropertyLine.DTCalenderStartDate = this.hijri2GrDate(hijriDateStr); return ret; } /// <summary> /// /// </summary> //private void FormControlMethod1() //{ private date hijri2GrDate(DTHijriDate hijriDateStr) { System.Globalization.CultureInfo arCul = new System.Globalization.CultureInfo("ar-SA"); System.Globalization.CultureInfo enCul = new System.Globalization.CultureInfo("en-US"); System.DateTime tempDateTime; str strTemp; System.String[] arr; date grDate; ; //all expected dates formats arr = new System.String[18](); arr.SetValue("dd/MM/yyyy", 1); arr.SetValue("dd-MM-yyyy", 2); try { tempDateTime = System.DateTime::ParseExact(hijriDateStr, arr, arCul, System.Globalization.DateTimeStyles::AllowWhiteSpaces); } catch { error("Unexpected Hirji date format."); return datenull(); } strTemp = tempDateTime.ToString("dd/MM/yyyy"); grDate = str2date(strTemp, 123); return grDate; } //} }
final class DTHijri2date { static date hijri2GrDate(DTHijriDate hijriDateStr) { System.Globalization.CultureInfo arCul = new System.Globalization.CultureInfo("ar-SA"); System.Globalization.CultureInfo enCul = new System.Globalization.CultureInfo("en-US"); System.DateTime tempDateTime; str strTemp; System.String[] arr; date grDate; ; //all expected dates formats arr = new System.String[18](); arr.SetValue("dd/MM/yyyy", 1); arr.SetValue("dd-MM-yyyy", 2); try { tempDateTime = System.DateTime::ParseExact(hijriDateStr, arr, arCul, System.Globalization.DateTimeStyles::AllowWhiteSpaces); } catch { error("Unexpected Hirji date format."); return datenull(); } strTemp = tempDateTime.ToString("dd/MM/yyyy"); grDate = str2date(strTemp, 123); return grDate; } }
[Control("String")] class DTPropertyLine_DTHijriDate { /// <summary> /// /// </summary> /// <returns></returns> public boolean modified() { boolean ret; DTHijriDate hijriDateStr; ret = super(); DTPropertyLine.DTCalenderStartDate = DTHijri2date::hijri2GrDate(hijriDateStr); return ret; } }
public void modifiedField(FieldId _fieldId) { switch (_fieldId) { case fieldNum(DTPropertyLine, DTHijriDate): this.DTCalenderStartDate = DTHijri2date::hijri2GrDate(this.DTHijriDate); break; } }
[Control("String")] class DTPropertyLine_DTHijriDate { /// <summary> /// /// </summary> /// <returns></returns> public boolean modified() { boolean ret; DTHijriDate hijriDateStr; ret = super(); hijriDateStr = this.text(); DTPropertyLine.DTCalenderStartDate = DTHijri2date::hijri2GrDate(hijriDateStr); return ret; } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 663
André Arnaud de Cal... 439 Super User 2026 Season 1
Syed Haris Shah 337 Super User 2026 Season 1