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 / adding minutes to date...
Power Apps
Unanswered

adding minutes to date/time column

(0) ShareShare
ReportReport
Posted on by 51

Hi,

I have the following Date/time column (Diversion ON_DataCard2) that a user selects a date and time for a certain event.  I have a calculated column ,or I can add a text label, that I I need to add 45 minutes to the selected hours and minutes.  I haven't been able to figure out the formula to add the 45 minutes to the selected times.

DateValue1

HourValue1

MinuteValue1

 

Thanks in advance for any and all help on this formula.

 

Ren

Categories:
I have the same question (0)
  • Verified answer
    MarkRahn Profile Picture
    1,229 Super User 2025 Season 2 on at

    Hi   @ren0927 

    Take a look at the Diversion DataCard - Update formula. It should look something like this:

     

    If(Not IsBlank(DateValue1.SelectedDate), DateTime(Year(DateValue1.SelectedDate), Month(DateValue1.SelectedDate), Day(DateValue1.SelectedDate), Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0))

     

     

    From that formula we can take this code for the selected DateTime:

     

    DateTime(Year(DateValue1.SelectedDate), Month(DateValue1.SelectedDate), Day(DateValue1.SelectedDate), Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0) 

     

     

    If you add a Text Label, you can set the Text property to:

     

    If(
     Not IsBlank(DateValue1.SelectedDate),
     Text(
     DateAdd(
     DateTime(
     Year(DateValue1.SelectedDate),
     Month(DateValue1.SelectedDate),
     Day(DateValue1.SelectedDate),
     Value(HourValue1.Selected.Value),
     Value(MinuteValue1.Selected.Value),
     0
     ),
     45,
     TimeUnit.Minutes
     ),
     "mm/dd/yyyy hh:mm"
     )
    )

     

     

    The DateAdd function is the one you are looking for. You can find more information here:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-dateadd-datediff

     

    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

    -Mark

     

  • Ntulikid Profile Picture
    29 on at

    Hi 

    I'm not sure if I do understand your question. to add times, you can use the DateAdd .

    Text(

              DateAdd( 

                           {your time is placed here},

                            45, // the 45 minutes that need to be added

                           TimeUnit.Minutes), //for minute 
                          "hh:mm" //
    time format

    )

     

    The image below shows an example of your use case (that if I understood your question)

    Untitled Diagram.drawio.png

  • RA-22081248-0 Profile Picture
    51 on at

    Thank you for the help!

  • RA-22081248-0 Profile Picture
    51 on at

    Adding the formula, you provided, to a text label worked like a charm!  I am a newbie to Powerapps so I very much appreciate the help.

     

    Ren

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard