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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard