Week Ending Date
Returns the date of the week-ending day based on the input date. Useful for due-by dates, weekly accounts etc.
AI
Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Mã nguồn
This function accepts the input date and the weekending day (Sun=1.....Sat=7). If the weekday of the input date is the same as the weekending day it returns the input date Function weekendday(inputdate, day) If Weekday(inputdate) > day Then inputdate = inputdate + 7 End If weekendday = inputdate + (day - Weekday(inputdate)) End Function
Bình luận gốc (3)
Được khôi phục từ Wayback Machine