new Date filter seems have problem

Galileo Choy shared this problem 38 days ago
Not a Problem

After i upgraded into 7.0.3 version...

when i use new Date("2021-10-17 00:00:00").getTime()

it seems it's converted into a wrong NumberLong as a result i can't have my expected result

8d58ddd4b8183cbbc2b29fee29d1e078

but there is no problem printing out the date

502b6e37e51cb773b79a3f702f782ee8

Replies (1)

photo
2

I don't quite understand why it is NumberLong(new Date().getTime()) here. You can just delete NumberLong.

Excuse me, can you give me a complete reproduction step?

photo
1

Oh~ You have solved the issue~ Thank you~

I just take away the NumberLong() then it's OK~


Because in the previous version (6.x.x), I need to use NumberLong to brace the getTime() object

NumberLong(new Date("2021-10-17 00:00:00").getTime()) 
in order to filter NumberLong values...

Just found this version doesn't need

f9ea497c0578180b3e16152f69f1facb

photo
Leave a Comment
 
Attach a file