System.Globalization.CCFixed.kday_on_or_before C# (CSharp) Method

kday_on_or_before() public static method

The static method computes the date of a day of week on or before a particular date.
public static kday_on_or_before ( int date, int k ) : int
date int An integer representing the date as /// fixed day number. ///
k int An integer representing the day of the week, /// starting with 0 for sunday. ///
return int
	public static int kday_on_or_before(int date, int k) {
		return date - (int)day_of_week(date-k);
	}

Usage Example

Example #1
0
 public static int kday_after(int date, int k)
 {
     return(CCFixed.kday_on_or_before(date + 7, k));
 }
All Usage Examples Of System.Globalization.CCFixed::kday_on_or_before