Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional