Ends in:
7 DAYS
13 HRS
13 MIN
48 SEC
Ends in:
7 D
13 H
13 M
48 S

Activities of "Merna"

Hello , I tried these configurations ,but unfortunately it doesn't work either.

Hello , I tried to enforce the culture to use en-US and date is Gregorian in arabic .

Using : <input hidden type="text" class="form-control" name="testHijriInput1" value="@DateTime.Now.AddMonths(-1).Date.ToString(new CultureInfo("en-US"))" />

so ,is there a way to be more generic to configure it once in the whole application?

hello , still hijri date appears

if (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ar") {

        &lt;input  hidden
               type=&quot;text&quot;
               class=&quot;form-control&quot;
               name=&quot;testHijriInput&quot;
               value=&quot;@DateTime.Now.AddMonths(-1).Date.ToString(&quot;MM/dd/yyyy&quot;)&quot; /&gt;
    }
    else
    {
        &lt;input hidden
            type=&quot;text&quot;
            class=&quot;form-control&quot;
            name=&quot;testHijriInput&quot;
            value=&quot;@DateTime.Now.AddMonths(-1).Date.ToString(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern)&quot; /&gt;
         
    }

Hello , Here is my code ,

   <input hidden
                type="text"
                class="form-control"
                name="testHijriInput"
                value="@DateTime.Now.AddMonths(-1).Date.ToString(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern)" />

I have used CultureInfo.CurrentUICulture .

Hello , I have tried to add input hidden in my application to add this solution but still return hijri in ar culture .

hello , Here is the languages we use in our application .

Steps : 1-Use Ar languages 2- select date then search **(Before Submitting)

**(After Submitting) years only in dates is return in hijri but wrongly cause now we are in 1443 not 1422

Hello , ABP Framework version: v5.1 UI type: MVC

Hello, Our application support 2 languages, Arabic (ar) and English (en), so we faced an issue using a date picker when UI Culture is ar. It returns in Hijri format, not Gregorian format when its type is Date Time, not a string.

How can I specify only Gregorian date format without using current culture please?

Thanks in advance

Showing 21 to 28 of 28 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06