cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SofticKabir
Helper III
Helper III

Problems with displaying Time from dropdowns

Hello,

 

I created some dropdowns for choosing a time. The initial idea was to calculate the difference between END & Start time, which would then give a precise time.

The dropdowns look like this:

Screenshot 2021-05-01 122814.png

So we have 4 dropdowns in total: (from left to right) "HourValueStart", "MinuteValueStart", "HourValueEnd", "MinuteValueEnd"

I tried following code first:

 

Text(Time(
    Value(HourValueEnd.Selected.Value) - Value(HourValueStart.Selected.Value);
    Value(MinuteValueEnd.Selected.Value) - Value(MinuteValueStart.Selected.Value);
    0))

 

but once I want to submit this, it returns an error saying "Invalid value '1619823600000' for field 'Einsatzzeit', expected a string".

 

Then I tried something else:

 

HourValueStart.Selected.Value & ":" & MinuteValueStart.Selected.Value & " - " & HourValueEnd.Selected.Value & ":" & MinuteValueEnd.Selected.Value 

 

with the goal to display exactly what was given as input. In this case it would have been "06:00 - 07:00". When I submit and go to check, it is just blank. In the spreadsheet (where it is stored once we hit the submit button) the column "Einsatzzeit" is also blank.

Anyone an idea what the issue could be?

11 REPLIES 11

@SofticKabir ,

Date/Time fields are either Date only or Date/time (not time only). The date is actually stored with a time of 00:00.

Are you using Excel here? If so, you might want to watch this video.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

SofticKabir
Helper III
Helper III

Hi @WarrenBelz ,

yes I am using Excel, because it was a requirement. Thanks for the video!

I got around this, by using normal Text instead of Date, to display the time.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,231)