Convert ObjectId to Timestamp and vice versa
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.
I see. I will add "objectIdFromDate" function in the next release.
I see. I will add "objectIdFromDate" function in the next release.
Resolved in version 4.7.0. Please refer to: https://nosqlbooster.com/blog/announcing-mongobooster-47/#MongoDB-ObjectId-%E2%86%94-Timestamp-Converter-Javascript-Functions
Resolved in version 4.7.0. Please refer to: https://nosqlbooster.com/blog/announcing-mongobooster-47/#MongoDB-ObjectId-%E2%86%94-Timestamp-Converter-Javascript-Functions
Replies have been locked on this page!