Show / Hide Table of Contents

Class NSFieldInfoDate

Date custom database field. Time component is ignored.

Syntax

Constructors

NSFieldInfoDate()

Initializes a new instance of the NSFieldInfoDate class.

Introduced or updated in version: 8.5R08

Declaration
NSFieldInfoDate

Methods

GetDefaultValue()

Introduced or updated in version: 8.5R08

Declaration
DateTime GetDefaultValue()
Returns
Type Description
DateTime

Default Date value.

Examples
NSFieldInfoDate thing;
DateTime defaultValue = thing.GetDefaultValue();

GetIsDefaultNow()

Introduced or updated in version: 8.5R08

Declaration
Bool GetIsDefaultNow()
Returns
Type Description
Bool

Should the current date be the default?

Examples
NSFieldInfoDate thing;
Bool isDefaultNow = thing.GetIsDefaultNow();

SetDefaultValue(DateTime)

Introduced or updated in version: 8.5R08

Declaration
Void SetDefaultValue(DateTime defaultValue)
Parameters
Type Name Description
DateTime defaultValue

Default Date value.

Returns
Type Description
Void
Examples
NSFieldInfoDate thing;
DateTime defaultValue;
thing.SetDefaultValue(defaultValue);

SetIsDefaultNow(Bool)

Introduced or updated in version: 8.5R08

Declaration
Void SetIsDefaultNow(Bool isDefaultNow)
Parameters
Type Name Description
Bool isDefaultNow

Should the current date be the default?

Returns
Type Description
Void
Examples
NSFieldInfoDate thing;
Bool isDefaultNow;
thing.SetIsDefaultNow(isDefaultNow);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top