I have an application in VueJS and I need to concatenate simple quotes in a variable that has a date like this 2017-11-09T02:00:00.000Z
.
I tried the following and I did not succeed:
var novaData = "'" + data + "'"
I tried to use the same methodology on the server, but it returns the following result:
'\'2017-11-02T02:00:00.000Z\''
And for nothing in this world I could not do replace()
of \
What I need is that after concatenating the returning string looks like this:
'2017-11-02T02:00:00.000Z'
I need the date in this format to query MongoDB.
If someone can help me, I thank them ...