MongoDB.NowUTC
--------------

Create a new JSON value with current date and time.

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

MBS( "MongoDB.NowUTC" ) ### Parameters

none

### Result

Returns JSON or error.

### Description

Create a new JSON value with current date and time.  
Value is in GMT/UTC.  
### Examples

Try it:

 Set Variable \[ $r ; Value: MBS ( "MongoDB.NowUTC" ) \]  
<small>  
Example result:   
{ "$date" : "2023-03-09T11:39:34Z" } </small>### 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.NextChange](MongoDBNextChange.md) - [MongoDB.OpenCollection](MongoDBOpenCollection.md)

[HTML Version](MongoDBNowUTC.shtml)