private void ShowInfo(int todayId) { Calendar calendar = monthArr[todayId]; LunarDate lunarDate = calendar.LunarDate; txtInfo.Text = lunarDate.ToString(true); txtInfo.Text += "\n\n" + calendar; }
public static string ConvertToIslamic(DateTime dateTime, string mod = "") { LunarDate lunar = Calendar.ConvertToIslamic(dateTime); return(string.IsNullOrEmpty(mod) ? lunar.ToString() : lunar.ToString(mod)); }