7 months ago

How to compare two dates without year

Posted 7 months ago by SkyCoder

If I have timestamp in database and date in format d-m like 12.12. I want to get all rows where timestamp has 12.12. in d-m format.

SO I am checking where('created_at', Carbon::today()->format('d-m')); I am getting 0 results... I should get one.

Please sign in or create an account to participate in this conversation.