Audit.SetDateAndTimeAsNumbers
-----------------------------

Sets whether time values are stored as numbers.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Audit](component_Audit.md) | [12.3](newinversion123.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Audit.SetDateAndTimeAsNumbers"; Setting ) 

**MBS**( **"Audit.SetDateAndTimeAsNumbers";** /\* Sets whether time values are stored as numbers. \*/  
**$Setting**) /\* The new setting.  
Pass 1 to store time and date values as numbers.  
Pass 0 to store them as text. (default)e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Setting | The new setting.   Pass 1 to store time and date values as numbers.   Pass 0 to store them as text. (default) | 1 |

### Result

Returns OK or error.

### Description

Sets whether time values are stored as numbers.  
If different users have different locales, the date formats may be different. But storing them as numbers may help to prevent trouble, where using different formatting causes a change logged.  
### Examples

Enable using numbers:

 Set Variable \[$r ; Value: MBS ( "Audit.SetDateAndTimeAsNumbers"; 1) \]  
### See also

- [Audit.GetDateAndTimeAsNumbers](AuditGetDateAndTimeAsNumbers.md)

### Release notes

- **Version 12.3**
    - Added [Audit.GetDateAndTimeAsNumbers](https://www.mbsplugins.eu/AuditGetDateAndTimeAsNumbers.shtml) and [Audit.SetDateAndTimeAsNumbers](https://www.mbsplugins.eu/AuditSetDateAndTimeAsNumbers.shtml) to log dates, times and timestamps as numbers instead of text.

### Blog Entries

- [MBS FileMaker Plugin 12.3](https://www.mbsplugins.de/archive/2022-07-19/MBS_FileMaker_Plugin_123/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 12.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2022-07-12/Neues_MBS_Plugin_123_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 12.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2022-07-12/MBS_Plugin_123_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.3pr3](https://www.mbsplugins.de/archive/2022-06-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Configure Audit functions in MBS Plugin](https://www.mbsplugins.de/archive/2022-06-10/Configure_Audit_functions_in_M/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 9th June 2022 , last changed 9th June 2022

  
[Audit.SetAuditLogTableName](AuditSetAuditLogTableName.md) - [Audit.SetEnabled](AuditSetEnabled.md)

[HTML Version](AuditSetDateAndTimeAsNumbers.shtml)