panel
This commit is contained in:
@@ -43,6 +43,14 @@ namespace Back.Common
|
||||
PersianCal.GetDayOfMonth(date).ToString("00")
|
||||
;
|
||||
}
|
||||
public static string ConvertMiladiToShamsiAndGetYearMonth(this DateTime date)
|
||||
{
|
||||
PersianCalendar PersianCal = new PersianCalendar();
|
||||
return
|
||||
PersianCal.GetYear(date).ToString("0000") +
|
||||
PersianCal.GetMonth(date).ToString("00");
|
||||
|
||||
}
|
||||
public static string ConvertMiladiToShamsiByTime(this DateTime date)
|
||||
{
|
||||
PersianCalendar PersianCal = new PersianCalendar();
|
||||
|
Reference in New Issue
Block a user