Storing Timestamp

How to store Timestamp in a document?

You can store as ISO8601 format https://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/datefun.html