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 / Convert Text to date
Power Apps
Answered

Convert Text to date

(0) ShareShare
ReportReport
Posted on by 143

Hello,

Simple problem, can't find a solution
I have a text-input in the format of "text" and looks as such:
date.JPG
And I need to patch it to my SQL database that has the format "date" as such:
sqldate.JPG
How can I convert the text input in that format to date the same as the sql format.

thanks for any help

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Connor_Taylor,

     

    Try to use:

    Text(DateTimeValue(TextInput1.Text), "yyyy-mm-dd")

    TextInput1 is the textinput control name.

     

    Regards,

    Mona

  • Connor_Taylor Profile Picture
    143 on at

    Thank you @v-monli-msft

  • PytByt Profile Picture
    943 on at

    Hi @v-monli-msft 


    @v-monli-msft wrote:

    Hi @Connor_Taylor,

     

    Try to use:

    Text(DateTimeValue(TextInput1.Text), "yyyy-mm-dd")

    TextInput1 is the textinput control name.


     

    I'm trying to implement your formula in a made up label, but i get this anomaly:

    date2.png

     

    Also:

    date3.png

     

    I'm hoping to get the 22/02/28 or 22-02-28

     

    What went wrong?

    Thanks,

    pytbyt

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard