Tuesday, October 14, 2014

Re: setisodate function

Already solved it.

Op woensdag 15 oktober 2014 01:34:08 UTC+2 schreef Abdelmajid el Ibrahimi:
Hello,

setisodate is a datetime function that can give you a date by entering year, week, day. Only the problem is i cant get it to work:
$time=new Time($datum);
$week= $time->format('%W');
$jaar= $time->format('%Y');
$datum= $time->setISODate($jaar,$week,$weekdag); //year , week num , day
return $datum;

It gives me a error back i read that Time class includes DATETIME

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: