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

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