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 / extract month number f...
Power Apps
Answered

extract month number from month name

(0) ShareShare
ReportReport
Posted on by 1,119

Dear Team,

 

I would like to extract the month number from the month name for data manipulation.

 

Example. in my drop down i have list of Months..

If i choose Jan, i would like to get it number value : 1, If I select Feb, i would like to get 2 etc.

 

Please assist.

 

venka91_0-1662455012805.png

 

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    Text(ThisItem.MyDateColumn,"mmmm")

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • venka91 Profile Picture
    1,119 on at

    I do not have any date columns. I just simply wanted to convert this Month as number and then i want to do a collection.

     

    The reason, on change of dropdown, i wanted to change the collection records. So i would like to store the corresponding month value to a variable, and then i will substitute the variable in my formula.

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @venka91 ,

     

    In that case you're probably going to have to use a Switch function to map the text against a number:

     

    Switch(DropDown.Selected.Text,
    "Jan", 1,
    "Feb", 2, 
    etc.
    )

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