GetDayOfMonth() public method

public GetDayOfMonth ( System.DateTime time ) : int
time System.DateTime
return int
Example #1
0
        public Dates()
        {
            hebCal = new HebrewCalendar();
            DateTime dt = DateTime.Now;
            NextGregMonth = 0;
            CurrentGregDay = dt.Day;
            CurrentGregMonth = dt.Month;
            CurrentGregYear = dt.Year;
            GetGregDateScope();

            NextJewishMonth = 0;
            //NextJewishMonthScope = 0;
            CurrentJewishDay = hebCal.GetDayOfMonth(dt);
            CurrentJewishMonth = hebCal.GetMonth(dt);
            CurrentJewishYear = hebCal.GetYear(dt);
            GetJewishDaysScope();
        }
        /// <summary>
        /// Calculates the Hebrew date of the English anniversary of the person's death for this English year
        /// </summary>
        public void ConvertToHebrew(bool useEnglish)
        {
            int year = useEnglish ? currentYearG : yearG;
            GregorianCalendar gc = new GregorianCalendar(GregorianCalendarTypes.USEnglish);
            HebrewCalendar hc = new HebrewCalendar();
            deathdateG = new DateTime(year, monthG, dayG, gc);

            yearH = hc.GetYear(deathdateG);
            monthH = CorrectedHebrewMonth(deathdateG);
            dayH = hc.GetDayOfMonth(deathdateG);
        }