0

I use PHP Runner to get data using REST API. The dates are showing as UNIX EPOCH Numbers. I need to show as human dates.

I can change the appearance using a custom view: $value - a value to be displayed on the page. Example:

$value = strtoupper($value);

$data - array with all field values. Example:

$value = $data["FirstName"].$data["LastName"];

where FirstName and LastName are actual field names.

Just not sure how to add the code. Any suggestions?

ADyson
  • 57,178
  • 14
  • 51
  • 63
  • Can you elaborate as to how both snippets of code you've provided here are at all related to the core of your question regarding dates expressed as Unix timestamps? [ask] – esqew Feb 22 '22 at 23:39
  • Agreed. What do first and last names have to do with times? There are no proper details in the question, and the only ones which _are_ present don't seem to relate to the title or the first paragraph. Does `$data` also contain these dates, in another field, perhaps? Show an example of the source data, and also an example of the output you want to achieve. – ADyson Feb 23 '22 at 00:29
  • Before you do that though, please [read this](https://www.google.com/search?q=PHP+format+unix+timestamp+as+date) - you might find there is already an answer to your basic question. It's slightly unclear where you're stuck, though. – ADyson Feb 23 '22 at 00:30

0 Answers0