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

Community site session details

Session Id : 5yl2nhx63zVQU6rRRDsl6S
Power Apps - Microsoft Dataverse
Unanswered

Error trying to convert DateValue to text

Like (0) ShareShare
ReportReport
Posted on 14 Aug 2023 14:48:05 by 48

Can someome tell me what is wrong in this formula column in Dataverse?

I got the error: 

Unexpected characters. The formula contains 'Error', where 'ParenClose' is expected.

anacarolinagr_0-1692024167235.png

 

Categories:
  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on 14 Aug 2023 at 19:37:03
    Re: Error trying to convert DateValue to text

    Hi @gulshankhurana ,

    I don't think DateTimeFormat is valid within the column definition formulas for PowerFX in Dataverse.

  • gulshankhurana Profile Picture
    1,395 Moderator on 14 Aug 2023 at 18:57:03
    Re: Error trying to convert DateValue to text

    Hi @anacarolinagr 

     

    I believe you may need 'DateTimeFormat'. 

     

    You may find the following links useful:
    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-datevalue-timevalue
    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/show-text-dates-times

    If you find my answer helpful then please do give it a thumbs up and if it helps address your query then please accept it as a solution.

     

    Kind regards

     

    Gulshan

     

     

  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on 14 Aug 2023 at 16:08:53
    Re: Error trying to convert DateValue to text

    Hi @anacarolinagr ,

    Not possible that I know of.  Now, with Dataverse there are default columns in all tables including the CreatedOn an ModifiedOn fields which are date fields that will contain the date and time the record is created and the date and time the record is last updated.  When you configure dataverse you can setup the format for dates and users can view their dates (under personalization options) in their required format.  

     

    Hopefully this default functionality meets the needs of this column.

  • anacarolinagr Profile Picture
    48 on 14 Aug 2023 at 16:05:29
    Re: Error trying to convert DateValue to text

     Actually I need a formula that changes the format of another column to the format mentioned. I used Now() just as an example. Do you know how I could do that?

     This is the sharepoint formula that I need to pass to Dataverse

    anacarolinagr_0-1692029074482.png

     

  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on 14 Aug 2023 at 15:52:07
    Re: Error trying to convert DateValue to text

    Hi @anacarolinagr ,

    I don't know of a supported function in the Dataverse PowerFX formulas that will accomplish this requirement.  You can do "UTCNow()" to get the UTC date time as a field in Dataverse through PowerFX.  

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete