# ToDate function in formula

**URL:** https://community.fibery.io/t/todate-function-in-formula/4158
**Category:** Ideas & Features
**Created:** [March 21, 2023, 1:22am UTC](https://community.fibery.io/t/todate-function-in-formula/4158 "2023-03-21T01:22:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tpaktop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/tpaktop/32/6394_2.png) [@tpaktop](https://community.fibery.io/u/tpaktop)
#### Post date: [March 21, 2023, 1:22am UTC](https://community.fibery.io/t/todate-function-in-formula/4158/1 "2023-03-21T01:22:50Z")

</div>

Should be a small thing to implement but will help to simplify a lot of code. When I have DateTime field in entity sometimes I want to extract only the date part of it. The only way to do it at this moment is to extract each component separately.  
The use case is especially relevant when dealing with timezones. As Date doesn’t care about timezones while DateTime does.  
I suggest a `ToDate` function which would take DateTime and return Date part only.
