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"))" />
hello , still hijri date appears
if (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ar") {
<input hidden
type="text"
class="form-control"
name="testHijriInput"
value="@DateTime.Now.AddMonths(-1).Date.ToString("MM/dd/yyyy")" />
}
else
{
<input hidden
type="text"
class="form-control"
name="testHijriInput"
value="@DateTime.Now.AddMonths(-1).Date.ToString(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern)" />
}
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 , ABP Framework version: v5.1 UI type: MVC