Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

GetDateInfoV Method, SftMaskCalendar Object

Converts a date into its components.

Syntax

VB.NETobject.GetDateInfoV(ByVal Dt As Date, ByRef Year As Object, ByRef Month As Object, ByRef Day As Object, ByRef DayOfWeek As Object)
VBobject.GetDateInfoV(ByVal Dt As Date, Year As Variant, Month As Variant, Day As Variant, DayOfWeek As Variant)
C#.NETvoid 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);
CHRESULT object->raw_GetDateInfoV(DATE Dt, VARIANT* Year, VARIANT* Month, VARIANT* Day, VARIANT* DayOfWeek);

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.

See Also SftMaskCalendar Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.