in reply to How for the current date return nearest saturday
Pretty easy fix. Add an offset if the day of the week is greater than 5 (will add an extra week if the day is saturday or sunday)
printf "%04s/%02s/%02s", Add_Delta_Days(Monday_of_Week(Week_of_Year(Today())),5+7*(Day_of_Week(Today())>5));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How for the current date return nearest saturday
by ppapro (Initiate) on May 25, 2011 at 17:36 UTC |