Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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 is free to use.

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


MongoDB.NextChange - MongoDB.OpenCollection