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 / Wrong date showing whe...
Power Apps
Answered

Wrong date showing when using AddColumn

(0) ShareShare
ReportReport
Posted on by 149

Hi,

 

I have a table which stores:

eventdate = DATE ONLY

timestart = TEXT (e.g. 10:15)

timeend = TEXT

 

When I pull the data and merge them thru adding a column, I go from (a) to (c), instead of going to (b)

 

(a)

From dataverse table

(b)

RESULT I WANT

(c)

What I get

craf7_eventdate [10/31/2020]

craf7_timestart [14:00]

10/31/2020 14:007/10/2022 2:00 PM

 

The code is here:

 

 

ClearCollect(
 colAddEvent,
 AddColumns(
 ShowColumns(
 Filter(
 Database1,
 StaffName = ddStaffSelector.Selected.craf7_staffname
 ),
 "craf7_eventdate",
 "craf7_timestart",
 ),
 "START",
 DateTimeValue(
 craf7_eventdate & " " & craf7_timestart,
 "en-GB"
 )
 )
)

 

 

Is there something I am doing wrong?

 

Thank you

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Mo_Islam 

    Please consider changing this part of your Formula to the following:

     

     "START",
     craf7_eventdate + TimeValue(craf7_timestart)
    

    Your Date is already a date type, so trying to use it in the DateTimeValue function will cause it to convert it to a string.  This will most likely convert it to 31/10/2020 - which is  7/10/2022

     

    So, in the above formula, just add the time value as converted from your text to the eventdate which is already a date.

     

    I hope this is helpful for you.

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard