The DHS Program User Forum
Discussions regarding The DHS Program data and results
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 Go to previous messageGo to previous message
betinajessen is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Survival status of preceding birth
Next Topic: Postnatal care attendance - Liberia 2013 vs 2019
Goto Forum:
  


Current Time: Mon Jul 15 17:22:45 Coordinated Universal Time 2024