/// <summary> /// Gets the last day of the month that matches <paramref name="dayOfWeek"/>. /// </summary> /// <param name="year">The year.</param> /// <param name="month">The month.</param> /// <param name="dayOfWeek">The weekday to match.</param> /// <param name="offset">The time's offset from Coordinated Universal Time (UTC).</param> /// <returns>An instance of <see cref="DateTimeOffset"/> representing the day.</returns> public static DateTimeOffset GetLastWeekdayOfMonth(int year, int month, DayOfWeek dayOfWeek, TimeSpan offset) { return(TimeUtils.GetLastWeekdayOfMonth(year, month, dayOfWeek, offset)); }
/// <summary> /// Gets the last day of the month that matches <paramref name="dayOfWeek"/>. /// </summary> /// <param name="year">The year.</param> /// <param name="month">The month.</param> /// <param name="dayOfWeek">The weekday to match.</param> /// <returns>An instance of <see cref="DateTimeOffset"/> representing the day.</returns> public static DateTimeOffset GetLastWeekdayOfMonth(int year, EssentialsDateMonthName month, DayOfWeek dayOfWeek) { return(TimeUtils.GetLastWeekdayOfMonth(year, month, dayOfWeek)); }
/// <summary> /// Gets the last day of the month that matches <paramref name="dayOfWeek"/>. /// </summary> /// <param name="year">The year.</param> /// <param name="month">The month.</param> /// <param name="dayOfWeek">The weekday to match.</param> /// <returns>An instance of <see cref="DateTime"/> representing the day.</returns> public static DateTime GetLastWeekdayOfMonth(int year, int month, DayOfWeek dayOfWeek) { return(TimeUtils.GetLastWeekdayOfMonth(year, month, dayOfWeek)); }
/// <summary> /// Gets the last day of the month that matches <paramref name="dayOfWeek"/>. /// </summary> /// <param name="date">A date in the month.</param> /// <param name="dayOfWeek">The weekday to match.</param> /// <returns>An instance of <see cref="DateTimeOffset"/> representing the day.</returns> public static DateTimeOffset GetLastWeekdayOfMonth(DateTimeOffset date, DayOfWeek dayOfWeek) { return(TimeUtils.GetLastWeekdayOfMonth(date, dayOfWeek)); }