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 / Add one hour to the cu...
Power Apps
Answered

Add one hour to the current time inside a DateTime field

(0) ShareShare
ReportReport
Posted on by 3,514

We have 2 fields of type Date-time named; BreakStartDate & BreakEndDate. for the BreakStartDate i set the default value for the Hour drop down to be  "Hour(Now())". While for the BreakEndDate i specify the Hour to be "Hour(Now())" + one hour as follow:-

 

enddate.png

 

but my above formula will not add one hour to the Hour drop down .. any advice please?

Thanks

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @johnjohn123 

    Use the DateAdd function, eg

     

    DateAdd( yourDateTimeValue, 1, Hours)
  • johnjohn123 Profile Picture
    3,514 on at

    @Anonymoushere what i tried `Hour(DateAdd(Now(),1,Hours))` but the hour will always be shown as 00

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @johnjohn123 

    I don't play around with Time much so I had to check out a form I'm currently working on.

     

    To me, it looks like the Hrs & Mins dropdowns use Text type data and not numbers so you need to convert to Text to show these values. The hint is to look at the Items property and you'll see what I mean.

     

    So BreakStartDate hours dropdown should be

    Text(Hour(Now()), "00")

    and, BreakEndDate hours dropdown

    Text(Hour(Now())+1, "00")

     

    See if that works for you?

  • johnjohn123 Profile Picture
    3,514 on at

    @Anonymousthis worked for me thanks

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard