Home » Topics » Mortality » How to convert Afghan Dates to Gregorian calendar -SAS
Re: How to convert Afghan Dates to Gregorian calendar -SAS [message #25374 is a reply to message #13202] |
Thu, 13 October 2022 05:32 |
betinajessen
Messages: 1 Registered: October 2022
|
Member |
|
|
Follow the link above and scroll down to see them. For example, it shows the following code:
// Create a date using the Afghan calendar.
thisDate = pc.ToDateTime(1395, 4, 22, 12, 30, 0, 0);
Console.WriteLine("Gregorian Calendar: {0:D} ", thisDate);
Console.WriteLine("Afghan 2023 Calendar: {0}, {1}/{2}/{3} {4}:{5}:{6}\n",
pc.GetDayOfWeek(thisDate),
pc.GetMonth(thisDate),
pc.GetDayOfMonth(thisDate),
pc.GetYear(thisDate),
pc.GetHour(thisDate),
pc.GetMinute(thisDate),
pc.GetSecond(thisDate));https://www.typecalendar.com/printable-calendar
[Updated on: Fri, 14 October 2022 11:31] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Nov 26 17:31:08 Coordinated Universal Time 2024
|