Example #1
0
        /// <summary>
        /// Next
        /// </summary>
        /// <param name="ldt"></param>
        /// <param name="dayOfWeek"></param>
        /// <returns></returns>
        public static LocalDateTime Next(this LocalDateTime ldt, DayOfWeek dayOfWeek)
        {
            do
            {
                ldt = ldt.NextDay();
            } while (ldt.DayOfWeek != dayOfWeek.AsIsoDayOfWeek());

            return(ldt);
        }