指定した月および年のn番目に発生する曜日の日付を返します。
カテゴリ: | 日付と時間 |
UnivGrad=nwkdom(1, 7, 6, year);
data _null_; /* Return the date of the third Monday in May 2012. */ a=nwkdom(3, 2, 5, 2012); /* Return the date of the fourth Wednesday in November 2012. */ b=nwkdom(4, 4, 11, 2012); /* Return the date of the fourth Saturday in November 2012. */ c=nwkdom(4, 7, 11, 2012); /* Return the date of the first Sunday in January 2013. */ d=nwkdom(1, 1, 1, 2013); /* Return the date of the second Tuesday in September 2012. */ e=nwkdom(2, 3, 9, 2012); /* Return the date of the fifth Thursday in December 2012. */ f=nwkdom(5, 5, 12, 2012); put a= weekdatx.; put b= weekdatx.; put c= weekdatx.; put d= weekdatx.; put e= weekdatx.; put f= weekdatx.; run;
a=Monday, 21 May 2012 b=Wednesday, 28 November 2012 c=Saturday, 24 November 2012 d=Sunday, 6 January 2013 e=Tuesday, 11 September 2012 f=Thursday, 27 December 2012
data _null_; /* The last Monday in May. */ x=nwkdom(5, 2, 5, 2012); put x date9.; run;
28MAY2012