MongoDB.Time
------------

Create a new JSON value with given timestamp.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [13.2](newinversion132.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.Time"; Value ) 

**MBS**( **"MongoDB.Time";** /\* Create a new JSON value with given timestamp. \*/  
**$Value**) /\* The time stamp to use. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The time stamp to use. |  |

### Result

Returns OK or error.

### Description

Create a new JSON value with given timestamp.  
Value is in GMT/UTC.  
### Examples

Try it:

 Set Variable \[ $r ; Value: MBS ( "MongoDB.Time"; Get(CurrentTimeStamp)) \]  
### See also

- [MongoDB.Find](MongoDBFind.md)
- [MongoDB.List](MongoDBList.md)
- [MongoDB.Ping](MongoDBPing.md)
- [MongoDB.Trace](MongoDBTrace.md)

### Release notes

- **Version 16.3**
    - Fixed memory leak in MongoDB.NowUTC, MongoDB.Time, MongoDB.ContainerToBinary and MongoDB.TextToBinary functions.
- **Version 13.2**
    - Added [MongoDB.NowUTC](https://www.mbsplugins.eu/MongoDBNowUTC.shtml) and [MongoDB.Time](https://www.mbsplugins.eu/MongoDBTime.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 16.3pr1](https://www.mbsplugins.de/archive/2026-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.2](https://www.mbsplugins.de/archive/2023-05-17/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.2 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-05-09/Neues_MBS_Plugin_132_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.2 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-05-09/MBS_Plugin_132_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.2pr1](https://www.mbsplugins.de/archive/2023-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 9th March 2023 , last changed 9th March 2023

  
[MongoDB.TextToBinary](MongoDBTextToBinary.md) - [MongoDB.Trace](MongoDBTrace.md)

[HTML Version](MongoDBTime.shtml)