Convert ObjectId to Timestamp and vice versa

Sergio Maruki shared this idea 15 months ago
Completed

We would like to have an option to convert ObjectId to Timestamp and vice versa.

There is the getTimestamp() method to get the timestamp from the ObjectId, but there is no way to do the inverse.

It would look something like this online converter


We use it constantly and having an option to do it in NOSQLBOOSTER would make it much easier.

Comments (2)

photo
3

I see. I will add "objectIdFromDate" function in the next release.