DatePrototype.setFullYear(Object, Double, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 a DateObject 的年度值設定為指定的年度值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static double setFullYear(System::Object ^ thisob, double dyear, System::Object ^ month, System::Object ^ date);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setFullYear)]
public static double setFullYear(object thisob, double dyear, object month, object date);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setFullYear)>]
static member setFullYear : obj * double * obj * obj -> double
Public Shared Function setFullYear (thisob As Object, dyear As Double, month As Object, date As Object) As Double
參數
- thisob
- Object
這個方法作用的對象。
- dyear
- Double
要設定的年份值。thisob
- month
- Object
月份值要設定為 thisob。
- date
- Object
要設定的 thisob日期值。
傳回
設定為 thisob的年份值。
- 屬性