Welcome Guest, Not a member yet? Register   Sign In
Call to a member function humanize() on string
#1

Hi,

I'm getting the error when i humnize() a datetime string from my database. same working for created_at field but not working for doc_expiry_date


Code:
  <?= $doc->doc_expiry->humanize(); ?>


Date :
Code:
2023-09-15 11:16:37
Reply
#2

See var_dump($doc->doc_expiry)
Instance of Time() class?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB