目的:
以數字形式傳回某個日期 (格式為 YYYYMMDD
) 的 Year/Month/DayOfMonth/WeekOfYear/WeekOfMonth/DayOfYear
。「date_part_ex」可以是:「dayofmonth」、「dayofyear」、「month」、「weekofmonth」、「weekofyear」或「year」
語法:
Java Class: com.hyperion.calcmgr.common.cdf.CalendarFunctions.datePart(Double,String)
CDF Spec: @CalcMgrGetDatePart(date, date_part_ex)