I must be approaching this incorrectly! My code is getting unwieldly.
Goal:
- If 24 hour time is between the hours of 00:00 to 09:59, show the leading zero highlighted in bold.
Scenario:
- varNow set to Now()
- This displays in Date + 12hr clock (I need Date + 24hr clock)
- Textbox Default property set to Text(varNow, ShortDateTime24)
- This displays correctly:
- However, when you cross midnight, there is no leading zero on the Hour
And it (obviously) stays this way until there are two hour digits.
HOW DO I GET THE LEADING 0?
I tried to Split varNow and parse out the Len of the hour field and Concatenate a "0", but then I lose the Date portion of the timestamp.
Idears?
Solved! Go to Solution.
Hi @ericonline ,
Try this
Text(varNow, "[$-en]mm/yyyy/dd hh:mm")
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.
Hi @ericonline ,
Try this
Text(varNow, "[$-en]mm/yyyy/dd hh:mm")
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
189 | |
65 | |
46 | |
35 | |
25 |
User | Count |
---|---|
243 | |
106 | |
89 | |
85 | |
64 |