// Create a new instance of PersianCalendar PersianCalendar persianCalendar = new PersianCalendar(); // Get the current Persian date DateTime persianDate = persianCalendar.ToDateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0, 0); // Get the Persian year, month, and day for a Gregorian date int persianYear = persianCalendar.GetYear(DateTime.Now); int persianMonth = persianCalendar.GetMonth(DateTime.Now); int persianDay = persianCalendar.GetDayOfMonth(DateTime.Now);In the above examples, we created a new instance of the PersianCalendar class and used it to get the current Persian date and Persian year, month, and day for a given Gregorian date. The package library for PersianCalendar is the .NET Framework, which provides a number of classes and libraries for working with Persian and other calendar systems.