web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power App - Not able t...
Power Apps
Unanswered

Power App - Not able to use formula on Date time column field -urgent

(2) ShareShare
ReportReport
Posted on by 6
I have one column with date type - date time 
 
when Use above column in another column formula -
DateDiff('Date Observed',Now(), TimeUnit.Days)  I get error as 
This operation cannot be performed on values which are of different Date Time Behaviors.
 
 
  Please see attached image for details 
 
 
error.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at
    Try Today() instead of Now(). Also what exactly is 'Date Observed' (a Variable?)

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • CarlosFigueira Profile Picture
    Microsoft Employee on at
    Formula columns are evaluated on the Dataverse side, which always happens on the UTC time zone. Now() returns the current time for the user's locale, and that cannot be compared directly with a date on UTC. For your case, you can use the UTCToday() or UTCNow() functions, which are available in formula columns:
     
    DateDiff('Date Observed', UTCNow(), TimeUnit.Days)
     
    Hope this helps!
  • SK-22082150-0 Profile Picture
    6 on at
    I foud solution - I just needed to use UTCNow() instead of Now() in formua 
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    So what CF said?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard