This documentation is archived and is not being maintained.

DatePrototype Class

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

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.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public ref class DatePrototype : public DateObject

The DatePrototype type exposes the following members.

  NameDescription
Public propertyStatic memberconstructorGets a reference to a prototype-based object that is using this prototype.
Public propertyItem[Double]Gets or sets a member of the script object that is designated by the specified Double index value. (Inherited from ScriptObject.)
Public propertyItem[Int32]Gets or sets a member of the script object that is designated by the specified Int32 index value. (Inherited from ScriptObject.)
Public propertyItem[array<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.)
Public propertyItem[String]Gets or sets a member of the script object that is designated by the specified name. (Inherited from ScriptObject.)
Public propertyUnderlyingSystemTypeGets the type of the script object. (Inherited from ScriptObject.)
Top

  NameDescription
Public methodAddFieldAdds the specified field to the object. (Inherited from JSObject.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic membergetDateGets the date value of the specified DateObject.
Public methodStatic membergetDayGets the day-of-the-week value of the specified DateObject.
Public methodGetFieldGets a field that has the specified name. (Inherited from ScriptObject.)
Public methodGetFieldsGets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.)
Public methodStatic membergetFullYearGets the year value of the specified DateObject.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic membergetHoursGets the hour value of the specified DateObject.
Public methodGetMemberGets an array of MemberInfo objects that correspond to all members that match the specified name. (Inherited from JSObject.)
Public methodGetMembersGets an array of MemberInfo objects that correspond to all members of the current script object. (Inherited from JSObject.)
Public methodGetMethod(String, BindingFlags)Gets a method that has the specified name. (Inherited from ScriptObject.)
Public methodGetMethod(String, BindingFlags, Binder, array<Type>, array<ParameterModifier>)Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodGetMethodsGets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.)
Public methodStatic membergetMillisecondsGets the millisecond value of the specified DateObject.
Public methodStatic membergetMinutesGets the minutes value of the specified DateObject.
Public methodStatic membergetMonthGets the month value of the specified DateObject.
Public methodGetParentGets a reference to the parent object. (Inherited from ScriptObject.)
Public methodGetPropertiesGets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags)Gets a property that has the specified name. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags, Binder, Type, array<Type>, array<ParameterModifier>)Gets a property that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodStatic membergetSecondsGets the seconds value of the specified DateObject.
Public methodStatic membergetTimeGets the time value of the specified DateObject.
Public methodStatic membergetTimezoneOffsetGets the offset of the specified DateObject from Coordinated Universal Time (UTC).
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic membergetUTCDateGets the date value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCDayGets the day-of-the-week value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCFullYearGets the year value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCHoursGets the hour value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCMillisecondsGets the millisecond value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCMinutesGets the minutes value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCMonthGets the month value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetUTCSecondsGets the seconds value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodStatic membergetVarDateReturns the specified DateObject as a DateTime object.
Public methodStatic membergetYearGets the year value of the specified DateObject, expressed in Coordinated Universal Time (UTC).
Public methodInvokeMemberInvokes the specified member. (Inherited from ScriptObject.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic membersetDateSets the date value of a DateObject to the specified date value.
Public methodStatic membersetFullYearSets the year value of a DateObject to the specified year value.
Public methodStatic membersetHoursSets the hour value of a DateObject to the specified hour value.
Public methodSetMemberValue2Sets the value of a field that was dynamically added to the object and stored in field_table. (Inherited from JSObject.)
Public methodStatic membersetMillisecondsSets the millisecond value of a DateObject to the specified millisecond value.
Public methodStatic membersetMinutesSets the minutes value of a DateObject to the specified minutes value.
Public methodStatic membersetMonthSets the month value of a DateObject to the specified month value.
Public methodStatic membersetSecondsSets the seconds value of a DateObject to the specified seconds value.
Public methodStatic membersetTimeSets the time value of a DateObject to the specified time value.
Public methodStatic membersetUTCDateSets the date value of a DateObject to the specified date value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCFullYearSets the year value of a DateObject to the specified year value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCHoursSets the hour value of a DateObject to the specified hour value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCMillisecondsSets the millisecond value of a DateObject to the specified millisecond value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCMinutesSets the minutes value of a DateObject to the specified minutes value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCMonthSets the month value of a DateObject to the specified month value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetUTCSecondsSets the seconds value of a DateObject to the specified seconds value, expressed in Coordinated Universal Time (UTC).
Public methodStatic membersetYearSets the year value of a DateObject to the specified year value.
Public methodStatic membertoDateStringCreates a string representation of the specified DateObject that contains the day of the week, the month, the date, and the year.
Public methodStatic membertoGMTStringCreates 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 instead, when you can.
Public methodStatic membertoLocaleDateStringCreates a string representation of the specified DateObject that contains the date but not the time.
Public methodStatic membertoLocaleStringCreates a string representation of the specified DateObject that contains the date and time.
Public methodStatic membertoLocaleTimeStringCreates a string representation of the specified DateObject that contains the time but not the date.
Public methodStatic membertoStringCreates 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.
Public methodToStringReturns a string that represents the current object. (Inherited from JSObject.)
Public methodStatic membertoTimeStringCreates a string representation of the specified DateObject that contains the time and the time zone.
Public methodStatic membertoUTCStringCreates 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).
Public methodStatic membervalueOfReturns the value of the specified DateObject.
Top

  NameDescription
Public fieldengineStores a reference to the scripting engine. (Inherited from ScriptObject.)
Protected fieldfield_tableStores a list of fields that are dynamically added and removed from the object. (Inherited from JSObject.)
Protected fieldparentStores a reference to the parent object. (Inherited from ScriptObject.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable::GetEnumeratorReturns an enumerator that iterates through the members of the object. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando::AddMethodAdds the specified method to the object. IExpando::AddMethod is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando::AddPropertyAdds the specified property to the object. This method is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetationPrivate methodIExpando::RemoveMemberRemoves the specified member from the object. (Inherited from JSObject.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: