Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Error trying to convert DateValue to text

(0) ShareShare
ReportReport
Posted on 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 at
    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 Super User 2025 Season 1 on at
    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 at
    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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics