/// <summary> /// Add quarters /// </summary> /// <param name="ld"></param> /// <param name="quarters"></param> /// <returns></returns> public static LocalDateTime AddQuarters(this LocalDateTime ld, int quarters) => ld.PlusMonths(quarters * 3);
public LocalDate PlusMonths(int months) { return(new LocalDate(localTime.PlusMonths(months))); }
/// <summary> /// Add months /// </summary> /// <param name="ld"></param> /// <param name="months"></param> /// <returns></returns> public static LocalDateTime AddMonths(this LocalDateTime ld, int months) => ld.PlusMonths(months);