public override int GetYear(DateTime time) { return (GetDatePart(time.Ticks, DatePartYear)); }
public void PersianDate() { PersianCalendar pc = new PersianCalendar(); DateTime dt = DateTime.Now; label17.Text = string.Format("امروز: {0}/{1}/{2}", pc.GetYear(dt), pc.GetMonth(dt), pc.GetDayOfMonth(dt)); }