DatePrototype.toLocaleDateString(Object) 方法

定义

创建指定的 DateObject 的字符串表示形式,其中包含日期但不包含时间。Creates a string representation of the specified DateObject that contains the date but not the time.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static System::String ^ toLocaleDateString(System::Object ^ thisob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_toLocaleDateString)]
public static string toLocaleDateString (object thisob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_toLocaleDateString)>]
static member toLocaleDateString : obj -> string
Public Shared Function toLocaleDateString (thisob As Object) As String

参数

thisob
Object

此方法所作用于的对象。The object that this method is acting upon.

返回

String

thisob 的字符串表示形式。A string representation of thisob.

属性

适用于

另请参阅