0
I have a system where the user registers the information in a Mysql database. One of the fields is Datacadastro of the kind Date() and that is registered only from Monday to Friday, that is, in the days that this user’s company works. I need to get just the current week’s records. I understand that to get the next 7 days, I have to do this:
SELECT * FROM tabela WHERE dataCadastro BETWEEN CURRENT_DATE()-7 AND CURRENT_DATE()
But how would I get only the dates of the current week?
Perfect fabionvs. The first solution fell better in my application. Thank you very much!
– user24136