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 / How to convert datetim...
Power Apps
Answered

How to convert datetime to text in calculated field

(0) ShareShare
ReportReport
Posted on 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.

I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Deeny ,

     

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

     

    Best Regards,

    Bof

  • Deeny Profile Picture
    11 on at

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

    Capture.JPG
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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 at

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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard