I'm 3 days in to Power Apps, so please go easy!
I've created an app which the user can select the date, hour and minute. The user then click a button which is connected to a Power Automate script and sends an email.
Below is the code used to capture the details within the app:
AddanitemtoSharePointandsendanemail.Run(DataCardValue8.Text, DataCardValue12.Text, DateValue1.SelectedDate, Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value);"mm", DataCardValue7.Text, User().FullName, User().Email);
Notify("Email has been sent");
Everything works Ok unless the user selects minutes which are less than 10. So for example, if you select 13:05, the email prints 13:5
If the user selects 15:00, the email prints 15:0. If the user select 12:30 from the app, the email prints 12:30 which is fine.
Within the SharePoint table, its stored correctly. It seems to be missing off the lead zero. I'm assuming this may be due to converting to text but can't seem to find a work around.
Any help and support would be welcome. Thanks in advance.