How to print node's timestamp in computed field I want to save my node's submission timestamp in a computed field. I know that I should use date_format function, but idk how it works.

How can I do that? thanks.
$timestamp = date($entity-&gt;created);