DatePrototype DatePrototype DatePrototype DatePrototype Class

Definition

Provides static methods and properties for DateObject objects. All methods of this class are called by passing in a reference to the object that is requesting access to the method. This class belongs to the built-in object model category.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class DatePrototype : Microsoft::JScript::DateObject
public class DatePrototype : Microsoft.JScript.DateObject
type DatePrototype = class
    inherit DateObject
Public Class DatePrototype
Inherits DateObject
Inheritance
Derived

Properties

constructor constructor constructor constructor

Gets a reference to a prototype-based object that is using this prototype.

Item[Double] Item[Double] Item[Double] Item[Double]

Gets or sets a member of the script object that is designated by the specified Double index value.

(Inherited from ScriptObject)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets a member of the script object that is designated by the specified Int32 index value.

(Inherited from ScriptObject)
Item[Object[]] Item[Object[]] Item[Object[]] Item[Object[]]

Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value.

(Inherited from ScriptObject)
Item[String] Item[String] Item[String] Item[String]

Gets or sets a member of the script object that is designated by the specified name.

(Inherited from ScriptObject)
UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType

Gets the type of the script object.

(Inherited from ScriptObject)

Methods

AddField(String) AddField(String) AddField(String) AddField(String)

Adds the specified field to the object.

(Inherited from JSObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
getDate(Object) getDate(Object) getDate(Object) getDate(Object)

Gets the date value of the specified DateObject.

getDay(Object) getDay(Object) getDay(Object) getDay(Object)

Gets the day-of-the-week value of the specified DateObject.

GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags)

Gets a field that has the specified name.

(Inherited from ScriptObject)
GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

Gets an array of FieldInfo objects that correspond to all fields of the current script object.

(Inherited from ScriptObject)
getFullYear(Object) getFullYear(Object) getFullYear(Object) getFullYear(Object)

Gets the year value of the specified DateObject.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
getHours(Object) getHours(Object) getHours(Object) getHours(Object)

Gets the hour value of the specified DateObject.

GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags)

Gets an array of MemberInfo objects that correspond to all members that match the specified name.

(Inherited from JSObject)
GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags)

Gets an array of MemberInfo objects that correspond to all members of the current script object.

(Inherited from JSObject)
GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags)

Gets a method that has the specified name.

(Inherited from ScriptObject)
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Gets a method that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

Gets an array of MethodInfo objects that correspond to all methods of the current script object.

(Inherited from ScriptObject)
getMilliseconds(Object) getMilliseconds(Object) getMilliseconds(Object) getMilliseconds(Object)

Gets the millisecond value of the specified DateObject.

getMinutes(Object) getMinutes(Object) getMinutes(Object) getMinutes(Object)

Gets the minutes value of the specified DateObject.

getMonth(Object) getMonth(Object) getMonth(Object) getMonth(Object)

Gets the month value of the specified DateObject.

GetParent() GetParent() GetParent() GetParent()

Gets a reference to the parent object.

(Inherited from ScriptObject)
GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

Gets an array of PropertyInfo objects that correspond to all properties of the current script object.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

Gets a property that has the specified name.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
getSeconds(Object) getSeconds(Object) getSeconds(Object) getSeconds(Object)

Gets the seconds value of the specified DateObject.

getTime(Object) getTime(Object) getTime(Object) getTime(Object)

Gets the time value of the specified DateObject.

getTimezoneOffset(Object) getTimezoneOffset(Object) getTimezoneOffset(Object) getTimezoneOffset(Object)

Gets the offset of the specified DateObject from Coordinated Universal Time (UTC).

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
getUTCDate(Object) getUTCDate(Object) getUTCDate(Object) getUTCDate(Object)

Gets the date value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCDay(Object) getUTCDay(Object) getUTCDay(Object) getUTCDay(Object)

Gets the day-of-the-week value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCFullYear(Object) getUTCFullYear(Object) getUTCFullYear(Object) getUTCFullYear(Object)

Gets the year value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCHours(Object) getUTCHours(Object) getUTCHours(Object) getUTCHours(Object)

Gets the hour value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCMilliseconds(Object) getUTCMilliseconds(Object) getUTCMilliseconds(Object) getUTCMilliseconds(Object)

Gets the millisecond value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCMinutes(Object) getUTCMinutes(Object) getUTCMinutes(Object) getUTCMinutes(Object)

Gets the minutes value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCMonth(Object) getUTCMonth(Object) getUTCMonth(Object) getUTCMonth(Object)

Gets the month value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getUTCSeconds(Object) getUTCSeconds(Object) getUTCSeconds(Object) getUTCSeconds(Object)

Gets the seconds value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

getVarDate(Object) getVarDate(Object) getVarDate(Object) getVarDate(Object)

Returns the specified DateObject as a DateTime object.

getYear(Object) getYear(Object) getYear(Object) getYear(Object)

Gets the year value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

Invokes the specified member.

(Inherited from ScriptObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
setDate(Object, Double) setDate(Object, Double) setDate(Object, Double) setDate(Object, Double)

Sets the date value of a DateObject to the specified date value.

setFullYear(Object, Double, Object, Object) setFullYear(Object, Double, Object, Object) setFullYear(Object, Double, Object, Object) setFullYear(Object, Double, Object, Object)

Sets the year value of a DateObject to the specified year value.

setHours(Object, Double, Object, Object, Object) setHours(Object, Double, Object, Object, Object) setHours(Object, Double, Object, Object, Object) setHours(Object, Double, Object, Object, Object)

Sets the hour value of a DateObject to the specified hour value.

SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object)

Sets the value of a field that was dynamically added to the object and stored in field_table.

(Inherited from JSObject)
setMilliseconds(Object, Double) setMilliseconds(Object, Double) setMilliseconds(Object, Double) setMilliseconds(Object, Double)

Sets the millisecond value of a DateObject to the specified millisecond value.

setMinutes(Object, Double, Object, Object) setMinutes(Object, Double, Object, Object) setMinutes(Object, Double, Object, Object) setMinutes(Object, Double, Object, Object)

Sets the minutes value of a DateObject to the specified minutes value.

setMonth(Object, Double, Object) setMonth(Object, Double, Object) setMonth(Object, Double, Object) setMonth(Object, Double, Object)

Sets the month value of a DateObject to the specified month value.

setSeconds(Object, Double, Object) setSeconds(Object, Double, Object) setSeconds(Object, Double, Object) setSeconds(Object, Double, Object)

Sets the seconds value of a DateObject to the specified seconds value.

setTime(Object, Double) setTime(Object, Double) setTime(Object, Double) setTime(Object, Double)

Sets the time value of a DateObject to the specified time value.

setUTCDate(Object, Double) setUTCDate(Object, Double) setUTCDate(Object, Double) setUTCDate(Object, Double)

Sets the date value of a DateObject to the specified date value, expressed in Coordinated Universal Time (UTC).

setUTCFullYear(Object, Double, Object, Object) setUTCFullYear(Object, Double, Object, Object) setUTCFullYear(Object, Double, Object, Object) setUTCFullYear(Object, Double, Object, Object)

Sets the year value of a DateObject to the specified year value, expressed in Coordinated Universal Time (UTC).

setUTCHours(Object, Double, Object, Object, Object) setUTCHours(Object, Double, Object, Object, Object) setUTCHours(Object, Double, Object, Object, Object) setUTCHours(Object, Double, Object, Object, Object)

Sets the hour value of a DateObject to the specified hour value, expressed in Coordinated Universal Time (UTC).

setUTCMilliseconds(Object, Double) setUTCMilliseconds(Object, Double) setUTCMilliseconds(Object, Double) setUTCMilliseconds(Object, Double)

Sets the millisecond value of a DateObject to the specified millisecond value, expressed in Coordinated Universal Time (UTC).

setUTCMinutes(Object, Double, Object, Object) setUTCMinutes(Object, Double, Object, Object) setUTCMinutes(Object, Double, Object, Object) setUTCMinutes(Object, Double, Object, Object)

Sets the minutes value of a DateObject to the specified minutes value, expressed in Coordinated Universal Time (UTC).

setUTCMonth(Object, Double, Object) setUTCMonth(Object, Double, Object) setUTCMonth(Object, Double, Object) setUTCMonth(Object, Double, Object)

Sets the month value of a DateObject to the specified month value, expressed in Coordinated Universal Time (UTC).

setUTCSeconds(Object, Double, Object) setUTCSeconds(Object, Double, Object) setUTCSeconds(Object, Double, Object) setUTCSeconds(Object, Double, Object)

Sets the seconds value of a DateObject to the specified seconds value, expressed in Coordinated Universal Time (UTC).

setYear(Object, Double) setYear(Object, Double) setYear(Object, Double) setYear(Object, Double)

Sets the year value of a DateObject to the specified year value.

toDateString(Object) toDateString(Object) toDateString(Object) toDateString(Object)

Creates a string representation of the specified DateObject that contains the day of the week, the month, the date, and the year.

toGMTString(Object) toGMTString(Object) toGMTString(Object) toGMTString(Object)

Creates a string representation of the specified DateObject that contains the day of the week, the month, the date, the year, and the time, expressed in Coordinated Universal Time (UTC). Use toUTCString(Object) instead, when you can.

toLocaleDateString(Object) toLocaleDateString(Object) toLocaleDateString(Object) toLocaleDateString(Object)

Creates a string representation of the specified DateObject that contains the date but not the time.

toLocaleString(Object) toLocaleString(Object) toLocaleString(Object) toLocaleString(Object)

Creates a string representation of the specified DateObject that contains the date and time.

toLocaleTimeString(Object) toLocaleTimeString(Object) toLocaleTimeString(Object) toLocaleTimeString(Object)

Creates a string representation of the specified DateObject that contains the time but not the date.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from JSObject)
toString(Object) toString(Object) toString(Object) toString(Object)

Creates a string representation of the specified DateObject that contains the day of the week, the month, the date, the time, the time zone, and the year.

toTimeString(Object) toTimeString(Object) toTimeString(Object) toTimeString(Object)

Creates a string representation of the specified DateObject that contains the time and the time zone.

toUTCString(Object) toUTCString(Object) toUTCString(Object) toUTCString(Object)

Creates a string representation of the specified DateObject that contains the day of the week, the month, the date, the year, and the time, expressed in Coordinated Universal Time (UTC).

valueOf(Object) valueOf(Object) valueOf(Object) valueOf(Object)

Returns the value of the specified DateObject.

Fields

engine engine engine engine

Stores a reference to the scripting engine.

(Inherited from ScriptObject)
field_table field_table field_table field_table

Stores a list of fields that are dynamically added and removed from the object.

(Inherited from JSObject)
parent parent parent parent

Stores a reference to the parent object.

(Inherited from ScriptObject)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the members of the object.

(Inherited from JSObject)
IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate)

Adds the specified method to the object. IExpando.AddMethod(String, Delegate) is not implemented in JScript.

(Inherited from JSObject)
IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String)

Adds the specified property to the object. This method is not implemented in JScript.

(Inherited from JSObject)
IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo)

Removes the specified member from the object.

(Inherited from JSObject)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also