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 / Removing time from a d...
Power Apps
Answered

Removing time from a date field not working

(0) ShareShare
ReportReport
Posted on by 1,625

I have the following on a label inside a gallery - I vaguely recall this worked as expected, but now no longer does, it no longer removes the time from the text and displays as :

 

2022-08-12T00:00:00

My Text Property:

Text(ThisItem.EStart, "dd-mm-yyyy")

 

Clearly both the formatting is wrong and the fact the time is showing, can't see why it wont display as dd-mm-yyyy and omitting the time, any ideas?

 

I should mention (don't know it it affects anything) this label is in side a nested gallery - and the nested galleries Items property is set to:

 

ThisItem.GroupedDATA

 

Thanks

Categories:
I have the same question (0)
  • Jeroen J Profile Picture
    on at

    Not sure, but you could try using DateValue:

     

    DateValue(ThisItem.'Created On') results in 2/3/2023

  • Lefty Profile Picture
    1,625 on at

    Thanks @jonckhje 

    That wouldn't work as SQL doesn't have a CreatedOn value

     

    Sorry I should have mentioned SQL is the data source

  • Jeroen J Profile Picture
    on at

    Okay, but regardless of the source, what happens if you try DateValue(ThisItem.Estart)

  • Lefty Profile Picture
    1,625 on at

    The same as Text(ThisItem.EStart, "dd-mm-yyyy")

     

    Displays the same values

    2022-08-12T00:00:00

     

  • Lefty Profile Picture
    1,625 on at

    I'm thinking maybe an option to remove everything and including 'T'

     

    Still wont solve  the formatting of the date to DD MM YYYY though

  • Jeroen J Profile Picture
    on at

    Wow... this is getting puzzling... I tried it in a sandbox environment and got exactly the wanted result:

     

    2023-02-03_13-48-09.gif

     

    Obviously we're doing something different. Could you see what it might be?
    (besides the data source and fields of course, that shouldn't matter)

  • Jeroen J Profile Picture
    on at

    Wow... this is getting puzzling... I tried it in a sandbox environment and got exactly the wanted result:

     

    2023-02-03_13-48-09.gif

     

    Obviously we're doing something different. Could you see what it might be?
    (besides the data source and fields of course, that shouldn't matter)

  • Lefty Profile Picture
    1,625 on at

    Not sure, if its to do with your CreatedOn being a system field in SP. Don't know if that is a like for like check, but I know the function I have should work, even before posting my question, but I can't understand why it doesn't

  • Lefty Profile Picture
    1,625 on at

    It's odd

     

    when I change my code to directly querying SQL the date is correctly formatted

     GroupBy(
     Search(
     Filter(
     //colSQLView,
     SQL_view, 

     But changing it to the collection, it doesn't and it shows in this format 2022-08-12T00:00:00

     

    I am creating the collection a Stored Procedure through PowerAutomate:

    ClearCollect(colSQLView1, SQL_view_Flow.Run().ResultSets.Table1); 

     If i dont use PowerAutomate and load the data in the collection directly via SQL I don't get the T00:00:00, it's only when I use the flow, issue is I need to use the flow as my data is non delegable otherwise

  • Verified answer
    Lefty Profile Picture
    1,625 on at

    i got this working by setting the text value to:

     

    Left(ThisItem.EStart, Len(ThisItem.EStart) - 9)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard