SftMask/OCX 6.5

SftMaskCalendar.GetDateInfo Method

Softel vdm, Inc.

Converts a date into its components.

Syntax       

VB.NET

object.GetDateInfo(ByVal Dt As Date, ByRef Year As Short, ByRef Month As Short, ByRef Day As Short, ByRef DayOfWeek As Short)

VB

object.GetDateInfo(ByVal Dt As Date, Year As Integer, Month As Integer, Day As Integer, DayOfWeek As Integer)

C#.NET

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

VC++

HRESULT object->GetDateInfo(DATE Dt, short* Year, short* Month, short* Day, short* DayOfWeek);

C

HRESULT object->raw_GetDateInfo(DATE Dt, short* Year, short* Month, short* Day, short* DayOfWeek);

Delphi

procedure object.GetDateInfo(Dt : TDateTime, out Year : Smallint, out Month : Smallint, out Day : Smallint, out DayOfWeek : Smallint);

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 GetDateInfo method converts a date into its components.

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

Calendar.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