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

# NSFieldInfoTime

> Time custom database field. Date value is ignored.

Time custom database field. Date value is ignored.

## Constructors

### NSFieldInfoTime()

```crmscript theme={null}
NSFieldInfoTime
```

Initializes a new instance of the NSFieldInfoTime class.

## Methods

## GetDefaultValue()

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

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

**Example:**

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


## Related topics

- [NSFieldInfoTimeSpan](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoTimeSpan.md)
- [NSFieldInfoDateTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoDateTime.md)
- [SuperOffice.WebApi.Data.FieldInfoTime](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoTime.md)
- [SuperOffice.WebApi.Data.FieldInfoDateTime](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoDateTime.md)
- [SuperOffice.WebApi.Data.FieldInfoTimeSpan](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoTimeSpan.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
