Convert ObjectId to Timestamp and vice versa

Sergio Maruki shared this idea 5 years ago

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.

Replies (2)


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

Leave a Comment
Attach a file