The code in question is below:
public static string ChangePersianDate(DateTime dateTime) { System.Globalization.GregorianCalendar PC = new System.Globa
You can test it in this way
Console.WriteLine(DateTime.Now.ToString("tt "));
The output will be like this:
AM
or
PM