Search code examples
redbean

what is alternative of R::$f->now() in redbean 4.X


in redbean v.3.x there is option to select date from db like R::$f->now() what is alternative of this in redbean v.4.x


Solution

  • You can use R::getCell('SELECT now()'); to run any sql commands, to get current time you just need to call R::isoDate(); or R::isoDateTime();