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 / exclude time value fro...
Power Apps
Unanswered

exclude time value from a date value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello I have an excel file connected to a form and a galery in my power app. I also have an add button which adds (obviously :D) values seen in the screenshot.  

Henning99_0-1681305842109.png

The problem is that it includes the time in the excel file. And somehow they date gets reduced by one day and gets the selected date - 1 day and the 22:00 or 00:00. 

Henning99_1-1681305938341.png

 

Does anybody know how to fix that?

 

Kind regards.

 

 

Categories:
  • NH-05081754-0 Profile Picture
    on at

    Try Using the DateValue() functiion.... this will convert the date pickers selected date from a Date Time Valut, to just the Date. so for example:

    DateValue(DateValue1.SelectedDate)

     if it is always subtracting a day, it could be a time zone/UTC conversion issue, and I'd just do a DateAdd() function around the formula above, so for example:

    DateAdd(DateValue(DateValue1.SelectedDate),1,TimeUnit.Days)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, but it still includes the time. 😄

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard