Is there a wa to get the get the current day?
Opened this issue · 1 comments
Deleted user commented
First of all. Great works its very awesome.
But i do some experiments and now i try to mark the today in calendar but i can't find any ways to do that....
Any help solutions for that??
Thanks
yohang commented
Hi,
The only way to do that is by using native PHP functions / objects.
if ($day->contains(new \DateTime)) {
// do something
}
should do the job, but it will be nice to have a isCurrent()
method in PeriodInterface. I'll do that.
Yohan.