# Date format version 3.3

**URL:** <https://discourse.cakephp.org/t/date-format-version-3-3/1079>\
**Category:** Need Help\
**Created:** [August 31, 2016, 3:58pm UTC](https://discourse.cakephp.org/t/date-format-version-3-3/1079 "2016-08-31T15:58:52Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [September 27, 2016, 7:55pm UTC](https://discourse.cakephp.org/t/date-format-version-3-3/1079/16 "2016-09-27T19:55:25Z")

</div>

@Diego thanks for reply, I wound up just doing

```auto
echo "<td style=\"width:40px;\">" . $row->lastedit->toDateTimeString() . "</td>";

```

Found it tucked away in a trait. Wasn’t in the docs, I created an issue and they are adding it to docs. I was hoping there was a global setting to change the format to Y-m-d H:i:s for datetime, but I guess there is not a config setting for it. Naturally I could always format with php like:

```auto
echo "<td style=\"width:40px;\">" . date_format($row->lastedit, 'Y-m-d H:i:s') . "</td>";

```

But since I am using cake I figured I’d try their way.

See [Chronos FormattingTrait](http://discourse.cakephp.org/t/chronos-formattingtrait/1239/2)

---

_[View the full topic](https://discourse.cakephp.org/t/date-format-version-3-3/1079)._
