SftMask/OCX 6.5

SftMaskContents.DateTime Property

Softel vdm, Inc.

Defines the date and time field contents.

Syntax       

Get

VB.NET

Dt = object.DateTime  As Date

VB

Dt = object.DateTime  As Date

C#.NET

System.DateTime Dt = object.DateTime;

VC++

DATE Dt = object->DateTime;
DATE Dt = object->GetDateTime();

C

HRESULT object->get_DateTime(DATE* Dt);

Delphi

Dt := object.DateTime   : TDateTime;

Put

VB.NET

object.DateTime = Dt  As Date

VB

object.DateTime = Dt  As Date

C#.NET

System.DateTime object.DateTime = Dt;

VC++

DATE object->DateTime = Dt;
void object->PutDateTime(DATE Dt);

C

HRESULT object->put_DateTime(DATE Dt);

Delphi

object.DateTime := Dt   : TDateTime;

object

A SftMaskContents object.

Dt

A Date value defining all date and time related fields of the defined mask (see Mask property).

Comments

The DateTime property defines the date and time field contents.

The DateTime property can be used to retrieve and set portions of a Masked Edit control’s contents without knowing the exact position of the data. All date and time related fields of the mask are affected.

When setting the DateTime property, the date defined using Val replaces the current contents of any date and time related fields of the mask.

Other portions of the mask can be retrieved and set using the Contents.Value property.


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