vadimdemedes/mongorito

how to find records with date, anything like whereDate?

themodernpk opened this issue · 3 comments

Guys,

I am storing created_at in YYYY-MM-DD HH:MM:SS format and I am receiving date in YYYY-MM-DD format. I need to run a where condition. Can you please assist me?

Thanks

So you are not storing dates as instances of Date?

@vadimdemedes no, I am storing it in YYYY-MM-DD HH:MM:SS format

In that case, regex is your best bet to match the YYYY-MM-DD part.