Delete Register in Mongo

I try to delete register but i used this command deleteMany({“fechaultimoevento”:{$lt : new Date (“14/02/2021 00:00:00”)}, and don`t work

I saw the register the field, have this format:
fechaultimoevento:2023-03-23T03:05:26.000+00:00

I try with that format of date and don´t work, and i don´t know how change the format beacuse i use the new Date.

How can give me any advise?

And i need the query to consult (select) i check this register exist really

Hello @Diana_Fernandes ,

Welcome to The MongoDB Community Forums! :wave:

I’m not certain I understand what you mean by “register” in this context. Could you provide some examples?

To understand your use case better, can you please share below details?

  • MongoDB Version used
  • Sample documents
  • Your requirements
  • Expected output

Regards,
Tarun