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 / Converting Dropdown da...
Power Apps
Answered

Converting Dropdown datetime from text value into number format

(0) ShareShare
ReportReport
Posted on by 95

Hi,

I have a dropdown for date in my app where date is coming from my datasource and user can select the date. Now issue is I'm trying to add a condition where dropdown.selectedtext.value = date_num (Column in my DB for where I have converted datetime into integers e.g. 202311161354(yyyymmddhhmm)). Now I want to my dropdown value which has type text I want to convert it into integer type in the mentioned format in my condition. Plus I dont want to change datetime format in dropdown. I have also added below the SS of datetime value in my dropdown. The second SS displays the date format which I want for dropdown date to be.

MAli_Ch_0-1700087953537.png

MAli_Ch_1-1700088112070.png

 

 

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

    Hi @MAli_Ch ,

     

    Please try:

    Int(Text(DateTimeValue("11/15/2023 1:31 PM"),"yyyymmddHHmm"))

     

    Best Regards,

    Bof

  • MAli_Ch Profile Picture
    95 on at

    Thanks @v-bofeng-msft.
    Your solution worked out.

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
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard