Hello to all!
I have a date with time stored in an excel sheet, when I want to do the Patch and edit the content I can have the Default to retrieve the date, but the minutes and hour are not being retrieve.
See attachments.
Dates.JPG= The date with time record in a label
Dates edit.JPG= Show how I could retrieve the Date but not the minutes and Hour.
I tried using the MID function but when the hour has only 1 digit It will not work.
ANY IDEA FOLKS? Thanks for reading
Greetings from Costa Rica! Pura vida
Solved! Go to Solution.
Thank you for the help, I found the solution:
Hour(TimeValue(Gallery2.Selected.'Start Date'))
As the record is in a excel sheet (text value), Hour function expects a number value. So the function TimeValue is what I had missing.
Problem solved. Thanks!
To retrieve the Hours you can use this code in the Default property of the dropdown.
Hour(ThisItem.'Start Date')
Hour(ThisItem.'Finish Date')
For the minutes you can use this code.
Minute(ThisItem.'Start Date')
Minute(ThisItem.'Finish Date')
Please note that the dropdown for hours should have all numbers from 0-23 as an option to select while minutes should have all numbers from 0-59.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Thank you for the help, I found the solution:
Hour(TimeValue(Gallery2.Selected.'Start Date'))
As the record is in a excel sheet (text value), Hour function expects a number value. So the function TimeValue is what I had missing.
Problem solved. Thanks!
User | Count |
---|---|
179 | |
118 | |
87 | |
44 | |
41 |
User | Count |
---|---|
241 | |
154 | |
128 | |
77 | |
72 |