Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  

MongoDB.NowUTC

Create a new JSON value with current date and time.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 13.2 ✅ 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" ) ]

Example result:
{ "$date" : "2023-03-09T11:39:34Z" }

Release notes

Blog Entries

This function does not need a paid license.

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


MongoDB.NextChange - MongoDB.OpenCollection

💬 Ask a question or report a problem


Start Chat