Cakephp timeAgoInWords always return with Ago and On string>>>> on 20/02/2024

hi everyone! is there any way to remove On word from return by timeAgoInWords. timeAgoInWords work perfectly fine and return exactly time duration but it always return with prefix word like on 20/02/2024 but i do not need (on 20/02/2024) i just want (20/02/2024)

you can see in this picture there is prefix ON word, is there any way to remove this string
Screenshot from 2024-02-20 16-11-05

Looking at the code that implements this, it seems that passing ['absoluteString' => '%s'] to the function will do what you want.

1 Like

great!! @Zuluru thanks it works