kouroshsalahshoor / BlazorPersianDatePickerDemo

Persian / Farsi DatePicker for Blazor (Server Side)
1 stars 0 forks source link

Jalali to Gregorian Convert Error #1

Open mRizvandi opened 3 years ago

mRizvandi commented 3 years ago

Hi Your DateTimeService is not working with shamsi or Jalali Calendar, check '2020-02-20' or 13xx-02-31! you can not use DateTime for Shamsi Calendar.

kouroshsalahshoor commented 3 years ago

Hi Mehdi,

Add DateFormat="yyyy-MM-dd"

like this:

<DateRangePicker @bind-StartDate="_startDate" MinDate="_minDate" MaxDate="_maxDate" SingleDatePicker="true" Culture="@(System.Globalization.CultureInfo.GetCultureInfo("fa-IR"))" DateFormat="yyyy-MM-dd" placeholder="لطفا یک تاریخ را انتخاب نمائید" />


From: Mehdi Rizvandi notifications@github.com Sent: Saturday, January 23, 2021 4:48 PM To: kouroshsalahshoor/BlazorPersianDatePickerDemo BlazorPersianDatePickerDemo@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [kouroshsalahshoor/BlazorPersianDatePickerDemo] Jalali to Gregorian Convert Error (#1)

Hi Your DateTimeService is not working with shamsi or Jalali Calendar, check '2020-02-20' or 13xx-02-31! you can not use DateTime for Shamsi Calendar.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/kouroshsalahshoor/BlazorPersianDatePickerDemo/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6RZ5QNW53JBWYEURW4TRDS3LEBDANCNFSM4WPVVINQ.