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.

Declaration
NSFieldInfoDate

Methods

GetDefaultValue()

Date custom database field. Time component is ignored.

Declaration
DateTime GetDefaultValue()
Returns
Type Description
DateTime

Default Date value.

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

GetIsDefaultNow()

Date custom database field. Time component is ignored.

Declaration
Bool GetIsDefaultNow()
Returns
Type Description
Bool

Should the current date be the default?

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

SetDefaultValue(DateTime)

Date custom database field. Time component is ignored.

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)

Date custom database field. Time component is ignored.

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);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top