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 / Changing date format o...
Power Apps
Unanswered

Changing date format on record type

(0) ShareShare
ReportReport
Posted on by 212

I have a Sharepoint list with an "audit period" (ie, 2017 - 2020). The beginning period and ending period is pulled from another list (ie 09/01/2017 and 12/31/2020).  These values are stored in my list audit list. When I display them in power apps, they are formatted as "2020-05-31T07:00:00Z" .

 

I've tried to reformat using the text command --> Text(ThisItem.'ContractPeriod:BegDate',DateTimeFormat.ShortDate) but I can't use this function as the data type is record and the function is text.  Does anyone know how to resolve this?  

 

thanks

Ruth

 

 

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @ruth 

     

    try to convert to 

    Text(ThisItem.'ContractPeriod:BegDate', "mm/dd/yyyy")

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @ruth 

     

    Text(DateValue(ThisItem.'ContractPeriod:BegDate'), "dd/mm/yyyy")

     

    StalinPonnusamy_1-1632422172387.png

     

  • ruth Profile Picture
    212 on at

    same problem - "Invalid argument type (Record). Expecting a Text value instead"

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @ruth 

     

    Did you tried below both? What is the field format in SP?

     

    Text(DateValue(ThisItem.'ContractPeriod:BegDate'), "dd/mm/yyyy")

     

    Text(Text(DateValue(ThisItem.'ContractPeriod:BegDate')), "dd/mm/yyyy")

      

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @ruth , alternatively you can give this a shot

    With(
     {
     uctDateTime: DateTimeValue(
     YourDateTime,
     "en-GB"
     )
     },
     DateAdd(
     uctDateTime,
     TimeZoneOffset(uctDateTime) / 60,
     Hours
     )
    )

     

    Hope it helps

  • ruth Profile Picture
    212 on at

    Yes. but I just figured it out. 

     

    I was using the default form that is built when I created a sharepoint form, the datacard value was a combo box? So I deleted it and used a label (could have used a text field but it's a display field so a label is fine). The command then works properly.

     

    Thanks

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard