i’ve tried using date_diff and date_create to get a difference from two date that’s already converted to string. here’s the code: and i am getting this error: Answer You need to call DateInterval::format() to display that difference as a string. See the manual for all of the available formatting options.