how to find records with date, anything like whereDate?
themodernpk opened this issue · 3 comments
themodernpk commented
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
vadimdemedes commented
So you are not storing dates as instances of Date
?
themodernpk commented
@vadimdemedes no, I am storing it in YYYY-MM-DD HH:MM:SS
format
vadimdemedes commented
In that case, regex is your best bet to match the YYYY-MM-DD
part.