I can get Monday this week with:
$monday = date_create()->modify('this Monday');
I would like to get with the same ease the 1st of this month. How can I achieve that?
Thanks
I can get Monday this week with:
$monday = date_create()->modify('this Monday');
I would like to get with the same ease the 1st of this month. How can I achieve that?
Thanks
Currently I'm using this solution:
The only issue I came upon is that strange time is being set. I needed correct range for our search interface and I ended up with this:
using date method, we should be able to get the result. ie; date('N/D/l', mktime(0, 0, 0, month, day, year));
For Example
Ugly, (and doesn't use your method call above) but works:
You can do it like this:
Here is what I use.
First day of the month:
Last day of the month:
I use a crazy way to do this is using this command
Thats all