# Get and set values

Display values are handled using standard getter and setters

- **getValue(fieldName)**
- **setValue(fieldName,value)**

Example

```javascript
let a = getValue("NUMBER1");
let b = getValue("NUMBER2");
setValue( "RESULT", (a-b) );
```

For explicitly getting a value (or ID) use

- **getDecimal(fieldName)**

Example

```javascript
let recordId = getDecimal("SELECTRECORD");
```

For explicitly getting a datetime use

- **getFieldTime(fieldName)**

Example

```javascript
const time = new Date(getFieldTime('DEADLINE'));
```