Class NSFieldInfoDate

Date custom database field. Time component is ignored.

Constructors

NSFieldInfoDate()

Initializes a new instance of the NSFieldInfoDate class.

Declaration

NSFieldInfoDate

Methods

GetDefaultValue()

Declaration

DateTime GetDefaultValue()

Examples

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

Returns

Type Description
DateTime Default Date value.

GetIsDefaultNow()

Declaration

Bool GetIsDefaultNow()

Examples

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

Returns

Type Description
Bool Should the current date be the default?

SetDefaultValue(DateTime)

Declaration

Void SetDefaultValue(DateTime defaultValue)

Examples

NSFieldInfoDate thing;
DateTime defaultValue;
thing.SetDefaultValue(defaultValue);

Parameters

Type Name Description
DateTime defaultValue Default Date value.

Returns

Type Description
Void

SetIsDefaultNow(Bool)

Declaration

Void SetIsDefaultNow(Bool isDefaultNow)

Examples

NSFieldInfoDate thing;
Bool isDefaultNow;
thing.SetIsDefaultNow(isDefaultNow);

Parameters

Type Name Description
Bool isDefaultNow Should the current date be the default?

Returns

Type Description
Void