> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSFieldInfoDate

> Date custom database field. Time component is ignored.

Date custom database field. Time component is ignored.

## Constructors

### NSFieldInfoDate()

```crmscript theme={null}
NSFieldInfoDate
```

Initializes a new instance of the NSFieldInfoDate class.

## Methods

## GetDefaultValue()

```crmscript theme={null}
DateTime GetDefaultValue()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Default Date value.

**Example:**

```crmscript theme={null}
NSFieldInfoDate thing;
DateTime defaultValue = thing.GetDefaultValue();
```

## GetIsDefaultNow()

```crmscript theme={null}
Bool GetIsDefaultNow()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should the current date be the default?

**Example:**

```crmscript theme={null}
NSFieldInfoDate thing;
Bool isDefaultNow = thing.GetIsDefaultNow();
```

## SetDefaultValue(DateTime)

```crmscript theme={null}
Void SetDefaultValue(DateTime defaultValue)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoDate thing;
DateTime defaultValue;
thing.SetDefaultValue(defaultValue);
```

## SetIsDefaultNow(Bool)

```crmscript theme={null}
Void SetIsDefaultNow(Bool isDefaultNow)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoDate thing;
Bool isDefaultNow;
thing.SetIsDefaultNow(isDefaultNow);
```


## Related topics

- [NSFieldInfoDateTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoDateTime.md)
- [SuperOffice.WebApi.Data.FieldInfoDate](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoDate.md)
- [SuperOffice.WebApi.Data.FieldInfoDateTime](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoDateTime.md)
- [NSFieldInfoTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoTime.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
- [Get Custom Field Info](/en/api/reference/restful/rest/fieldinfobase/get-custom-field-info.md)
