Display the current date using the Gregorian and Persian calendars.Ĭonsole.WriteLine("Today in the Gregorian Calendar: ", PersianCalendar pc = new PersianCalendar() It also displays the date range of the Persian calendar. It then displays these dates in both the Gregorian and Persian calendars. The following example instantiates DateTime objects by using the DateTime.Now property, a DateTime constructor, and the Persian calendar's ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |