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 / Office reservation / T...
Power Apps
Unanswered

Office reservation / Time issue

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I'm hoping that someone can help me.  I've created a canvas app for basic office reservation purposes, but the issue I am having is that the 'start time value' and 'end time value' that I have created that format the selected times into a time data type, I do not know how to write my submit formula so that I can 1. include both of them and 2. get those values to come over to SharePoint as actual time and not as text. 

 

If anyone has any ideas / tips on how to assist - I'm all ears. 

 

ianallen13V2_0-1641314361290.png

 

ianallen13V2_1-1641314418680.png

 

 

 

Categories:
I have the same question (0)
  • Abhilash_Swain Profile Picture
    901 on at

    Hi @ianallen13V2 ,
    Please modify your formula to Text(Time(Value(Hour.Selected.Value), Value(Minute.Selected.Value), 0), DateTimeFormat.ShortTime)

  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @ianallen13V2 

     

    if you go with AM/PM (not 24-hour format) there is a bit complex formula

    'Time Start':
    DatePicker.SelectedDate + 
    Time( 
     Value(
     If(
     DropdownAmPm.Selected.Value = "AM" && DropdownHours.Selected.Value<>12, DropdownHours.Selected.Value,
     DropdownAmPm.Selected.Value = "AM" && DropdownHours.Selected.Value=12, 0,
     DropdownAmPm.Selected.Value = "PM" && DropdownHours.Selected.Value<>12, DropdownHours.Selected.Value + 12,
     DropdownAmPm.Selected.Value = "PM" && DropdownHours.Selected.Value=12, DropdownHours.Selected.Value
     )
     ), 
    
    
     Value(DropdownMinutes.Selected.Value), 
     00 
    )

     

  • ianallen13V2 Profile Picture
    on at

    Hello, 

     

    I'm sure I missed something, but I tried this and it does not work for me.  Did you mean for this formula for the time selection tool or the overall submit formula?  Just checking... 

     

    ianallen13V2_0-1641323686603.png

     

  • Abhilash_Swain Profile Picture
    901 on at

    In Your case, the formula will be 

    Text(Time(Value(DD_Hour.Selected.Value), Value(DD_Minute.Selected.Value), 0), DateTimeFormat.ShortTime)

    You have Missed- "DateTimeFormat.ShortTime".

     

    While submitting, please make sure your column of type text to accept the time format.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard