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

**URL:** <https://discourse.cakephp.org/t/cakephp-timeagoinwords-always-return-with-ago-and-on-string-on-20-02-2024/11884>\
**Category:** Uncategorized\
**Created:** [February 20, 2024, 10:41am UTC](https://discourse.cakephp.org/t/cakephp-timeagoinwords-always-return-with-ago-and-on-string-on-20-02-2024/11884 "2024-02-20T10:41:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaan007](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/shaan007/32/2765_2.png) [@shaan007](https://discourse.cakephp.org/u/shaan007)\
**Post date:** [February 20, 2024, 10:41am UTC](https://discourse.cakephp.org/t/cakephp-timeagoinwords-always-return-with-ago-and-on-string-on-20-02-2024/11884/1 "2024-02-20T10:41:59Z")

</div>

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](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/d/df3e74059149b720c5fa7acb25655ad6b44771ae.png)

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [February 20, 2024, 4:51pm UTC](https://discourse.cakephp.org/t/cakephp-timeagoinwords-always-return-with-ago-and-on-string-on-20-02-2024/11884/2 "2024-02-20T16:51:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shaan007](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/shaan007/32/2765_2.png) [@shaan007](https://discourse.cakephp.org/u/shaan007)\
**Post date:** [February 21, 2024, 5:22am UTC](https://discourse.cakephp.org/t/cakephp-timeagoinwords-always-return-with-ago-and-on-string-on-20-02-2024/11884/3 "2024-02-21T05:22:55Z")

</div>

great!! @Zuluru thanks it works
