Showing results for 
Search instead for 
Did you mean: 
New Member

Date value from dropdown boxes for month and year

Hi all,


I’m having some issues creating a date value for a column in sql database based on input from powerapps from 2 dropdown boxes, one for year selection and one for month selection. 
using the datepicker is not an option as this does not fit with the purpose for users.


e.g users selects from dropdown Month: 8 and from dropdown Year 2020. The day will be a default value (for example 01).

I want to add the date 01/08/2020 now to the database.

I’m trying at the moment with :

Datevalue(concatenate(“01/“,dropdown_Month.SelectedText, “/“, Dropdown_Year.SelectedText)) 

but this does not work. Any solutions for this? 

thanks in advance! 

Super User
Super User

hi @Pdh1 have alook at this: Working with date/time values and SQL Server | Microsoft Power Apps


hope it helps



This does not solve my issue though, how should I create a date in powerapps from my dropdown boxes month & year (default first of the month)? 
This is the step where I am having issues, connection with SQL and date column seems to work ok. 

Super User
Super User

hi @Pdh1 try Dropdown_Year.SelectedText & "-"& dropdown_Month.SelectedText & "-01"


Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (1,919)