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 / help with setting a NO...
Power Apps
Answered

help with setting a NOT current datetime in PowerApps

(0) ShareShare
ReportReport
Posted on by 413

Hi there. 

 

Using the now() function is quite easy to configure a button to set current datetime in a variable. 

 

But what to do when you have to set a variable with a different datetime value? I have some possibilities that I dislike:

 

1- use 3 textbox to write date, hour, minutes and concatenate them to a variable.

2- Write in a textbox the data in the correct format.

 

The way I like the most is to use a component in powerapps liek the "Date selector" with datetime, because it's easy and faster for the operator.

Calcioscacchi_0-1694004492448.png

 

Is it possible?

Thanks.

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

    Hi @Calcioscacchi ,

     

    A common combination is a datepicker control and two dropdown controls.

    vxiaochenmsft_0-1694052126389.png

    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]

    vxiaochenmsft_1-1694052181898.png

    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"]

    vxiaochenmsft_2-1694052298319.png

    DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0)

     

    Best Regards,

    Wearsky

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard