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 / Show Day/Date of Week
Power Apps
Unanswered

Show Day/Date of Week

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

I have the need to include the ShortDate in my Gallery.

Similar to the Excel spreadsheet below. 


The dates shall match the date in the 'Two-weeks' date field shown in the Gallery.

Is it possible to write a formula in the 'Tooltip' for each 'Hours' field when the user 
hovers over it the ShortDate specific the day/date based on the 'Two-weeks' field
is displayed?

Phineas_0-1659736051683.png

Phineas_1-1659736382092.png

 

 

Categories:
  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Depending on how you did those hour boxes. If they are seperate TextBoxes each, then for the tooltip property on each, you would need to do something like this. I don't know where you get the start date and end date, assume it's from a datepicker, but for now, I'll just use a variable that you can set where that date is coming from.  

     

    Tooltip for:

    TextBox1: Text(DateAdd( varStartDate,0,Days),DateTimeFormat.ShortDate)

    TextBox2: Text(DateAdd( varStartDate,1,Days),DateTimeFormat.ShortDate)

    TextBox3: Text(DateAdd( varStartDate,2,Days),DateTimeFormat.ShortDate)

    TextBox4....

     

    That should net the results you need. 

  • Phineas Profile Picture
    5,345 Moderator on at

    The 'Hours' fields are Labels in Gallery1 pulling in hours worked per day from the SP List. The date range field is in the same Gallery1.

    The two-week date range referenced in this action is in Dropdown1.

    Dropdown1 Items Property:
    With(
    {SeedDate: DateAdd(Today(), -Weekday(Today(), Monday) - 7, Days)},
    ForAll(
    Sequence(20, -2, 1) As Offset,
    {
    Number: Text(Offset.Value + 3),
    Dates: Text(DateAdd(SeedDate, Offset.Value * 14, Days), "mm/dd/yyyy") & " - " & Text(DateAdd(SeedDate, (Offset.Value + 1) * 14 - 1, Days), "mm/dd/yyyy")
    }
    )
    )

    Phineas_0-1659739214926.png

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    So something like DateValue(Left(Dropdown1.Selected.Value,10)) should work. It takes your first 10 characters of the Selected Dropdown Date, turns to datevalue for the below DateAdd, and should net the results needed. 

     

     

    Tooltip for:

    TextBox1: Text(DateAdd( DateValue(Left(Dropdown1.Selected.Value,10)),0,Days),DateTimeFormat.ShortDate)

    TextBox2: Text(DateAdd( DateValue(Left(Dropdown1.Selected.Value,10)),1,Days),DateTimeFormat.ShortDate)

    TextBox3: Text(DateAdd( DateValue(Left(Dropdown1.Selected.Value,10)),2,Days),DateTimeFormat.ShortDate)

    TextBox4....

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard