I am working with Robomongo, where I am manually inserting an object.
I want to have a field on my object, which is the current date. Normally I am used to use Date.now()
in Javascript. However, when I use the insert document form in the Robomongo tool, I get:
Unable to parse JSON:
Expecting '(', at (4, 15).
Sample JSON:
{
serial: '1231323123',
game: 'World of Warcraft',
date: Date.now()
}
Any idea how to insert this record?