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 : K0VqSydD7aFaqAwrdSTQI6
Power Apps - Microsoft Dataverse
Answered

How to convert datetime to text in calculated field

Like (0) ShareShare
ReportReport
Posted on 31 May 2023 02:39:51 by 11

I'm trying to create a calculated column in a table and set the data type as Single line of text. I want to get the text value of createdon, which is datetime type, but can't find a possible solution on this, does anyone know about it?

 

I tried to use Text(createdon, "dd/MM/yyyy hh:mm:ss"), but it shown that   The TEXT function doesn't exist.

  • Deeny Profile Picture
    11 on 01 Jun 2023 at 06:31:01
    Re: How to convert datetime to text in calculated field

    Hi @v-bofeng-msft , thanks for your reply, I'm trying to create real time process for this issue.

  • Verified answer
    v-bofeng-msft Profile Picture
    on 31 May 2023 at 05:31:39
    Re: How to convert datetime to text in calculated field

    Hi @Deeny ,

     

    There is no such a function named 'TEXT' for calculated field 

    vbofengmsft_0-1685510781306.png

     

    Please check this link:
    https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn832103(v=crm.8)?redirectedfrom=MSDN 

     

     In addition , the formula column is also not work for 'Text' cause The Text and Value functions only work with whole numbers(https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns#functions)

    vbofengmsft_1-1685510958234.png

     

     

    Please consider using flow, triggering with 'when a row is added', and then updating this text field.

     

     

    Best Regards,

    Bof

  • Deeny Profile Picture
    11 on 31 May 2023 at 03:38:55
    Re: How to convert datetime to text in calculated field

    Hello, here is the screenshot, thanks for your investigation!

  • v-bofeng-msft Profile Picture
    on 31 May 2023 at 03:12:34
    Re: How to convert datetime to text in calculated field

    Hi @Deeny ,

     

    Could you please show me a screenshot? Where did you use the text function?

     

    Best Regards,

    Bof

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics