> ## 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.

# NSFieldInfoDateTime

> Date + time custom database field.

Date + time custom database field.

## Constructors

### NSFieldInfoDateTime()

```crmscript theme={null}
NSFieldInfoDateTime
```

Initializes a new instance of the NSFieldInfoDateTime class.

## Methods

## GetDefaultValue()

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

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

**Example:**

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

## GetIsDefaultNow()

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

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

**Example:**

```crmscript theme={null}
NSFieldInfoDateTime 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}
NSFieldInfoDateTime 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}
NSFieldInfoDateTime thing;
Bool isDefaultNow;
thing.SetIsDefaultNow(isDefaultNow);
```


## Related topics

- [NSFieldInfoDate](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoDate.md)
- [NSFieldInfoTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoTime.md)
- [SuperOffice.WebApi.Data.FieldInfoDateTime](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoDateTime.md)
- [SuperOffice.WebApi.Data.FieldInfoDate](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoDate.md)
- [SuperOffice.WebApi.Data.FieldInfoTime](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoTime.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
