コード例 #1
0
        public static DateTime ToDateTime(ICalendar calendarDate)
        {
            if (calendarDate == null)
            {
                throw new ArgumentNullException(nameof(calendarDate));
            }
            var gd = (GregorianDate)calendarDate.CastTo(new GregorianDate());
            var dt = new DateTime(gd.Year, gd.Month, gd.Day);

            return(dt);
        }