SftMask/OCX 6.5

SftMaskCalendar.GetDateInfoV Method

Softel vdm, Inc.

Converts a date into its components.

Syntax       

VB.NET

object.GetDateInfoV(ByVal Dt As Date, ByRef Year As Object, ByRef Month As Object, ByRef Day As Object, ByRef DayOfWeek As Object)

VB

object.GetDateInfoV(ByVal Dt As Date, Year As Variant, Month As Variant, Day As Variant, DayOfWeek As Variant)

C#.NET

void object.GetDateInfoV(System.DateTime Dt, out object Year, out object Month, out object Day, out object DayOfWeek);

VC++

HRESULT object->GetDateInfoV(DATE Dt, const _variant_t&* Year, const _variant_t&* Month, const _variant_t&* Day, const _variant_t&* DayOfWeek);

C

HRESULT object->raw_GetDateInfoV(DATE Dt, VARIANT* Year, VARIANT* Month, VARIANT* Day, VARIANT* DayOfWeek);

Delphi

procedure object.GetDateInfoV(Dt : TDateTime, out Year : OleVariant, out Month : OleVariant, out Day : OleVariant, out DayOfWeek : OleVariant);

object

A SftMaskCalendar object.

Dt

The date to be converted.

Year

Returns the year as specified by Dt.

Month

Returns the month as specified by Dt, a value in the range 1-12.

Day

Returns the day as specified by Dt, a value in the range 1-31.

DayOfWeek

Returns the day of the week (Sunday = 0, Monday = 1, etc.).

Comments

The GetDateInfoV method converts a date into its components.

GetDateInfoV can be used to convert a date into its month, day, year components. Calendar.GetTimeInfo is used to retrieve the time related components.

GetDateInfoV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com