# How to display datetime field in tree view under single field

**URL:** https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439
**Category:** Developer
**Created:** [March 12, 2020, 9:14am UTC](https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439 "2020-03-12T09:14:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![prashasti.sharma](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/58f4c7/32.png) [@prashasti.sharma](https://discuss.tryton.org/u/prashasti.sharma)
#### Post date: [March 12, 2020, 9:14am UTC](https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439/1 "2020-03-12T09:14:01Z")

</div>

How to display datetime field in tree view under single field without using two different fields widget=date and widget= time.

Any recommendations to this will be a great help.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 12, 2020, 9:52am UTC](https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439/2 "2020-03-12T09:52:01Z")

</div>

> [@prashasti.sharma](#):
>
> How to display datetime field in tree view under single field without using two different fields widget=date and widget= time.

This is not supported, you should split it into two separate fields

---

<div class="post-metadata">

### Author: ![formateli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/formateli/32/579_2.png) [@formateli](https://discuss.tryton.org/u/formateli)
#### Post date: [March 12, 2020, 1:55pm UTC](https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439/3 "2020-03-12T13:55:21Z")

</div>

You can also create a text function field that returns the formatted date/time value.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 12, 2020, 4:04pm UTC](https://discuss.tryton.org/t/how-to-display-datetime-field-in-tree-view-under-single-field/2439/4 "2020-03-12T16:04:04Z")

</div>

But this will not follow necessary the locale of the client displaying it.
