I am confused with handling dates
I can't patch the hours and minutes in a DateTime sharepoint column
in powerapps I have a DateTimePicker for the date and 2 ComboBox for the hours and minutes
I am trying as follows
DateTimeValue (Final Date.SelectedDate & "" & Final Time.Selected.Value & ":" & MinFinal.Selected.Value)
but in the sharepoint column only the date appears the hours and minutes not
Dates are one of the most confusing topics in PowerApps in my opinion. Therefore, you are in good company if you are having a problem with them!
Your post said you can only see the hours and minutes in your SharePoint column when using this code. Can you please check the settings to see if its a Time only column? This is an option in a SharePoint DateTime column. You want a Date & Time instead.
DateTimeValue (Final Date.SelectedDate & "" & Final Time.Selected.Value & ":" & MinFinal.Selected.Value)
I'm not too familiar with the DateTimeValue function but if you believe that's the problem you can try to Patch this value instead.
Final Date.SelectedDate + Time(Final Time.Selected.Value, MinFinal.Selected.Value, 0)
Let me know how you are doing after trying these things!
---
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."
HI @mdevaney
thanks for answering if the dates in PowerApps are confusing
I tried the code above and the result is the same.
just show me the date
The hours and minutes are lost
the column is of type DATETIME
It should look something like this: 01/15/20 10:00 AM
1) as @mdevaney said double check that the settings on the column itself are set to show both date and time.
2) I think the formula you want for saving the value is a Text() to format the ISO DateTime String inside a DateTimeValue()
DateTimeValue(Text(Final Date.SelectedDate & "" & Final Time.Selected.Value & ":" & MinFinal.Selected.Value,DateTimeFormat.LongDateTime))
Thanks for the help @mdevaney @Pstork1
the column if it is in the configuration that tells me Date and time
Something strange happened but it worked for me.
since the value of the date has it but in the column it does not show it only shows 1/9/2020
but its value is
2020-01-10T06: 00: 00Z
I used this formula
Set(
DateEndTest,
DateTimeValue (
Text (
DateEnd.SelectedDate + Time (TimeValue (TimeEnd.Selected.Value), TimeValue (MinEnd.Selected.Value), 0),
DateTimeFormat.LongDateTime
)
)
);
Value in variable in Flow
In column of ShrePoint
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
69 | |
55 | |
50 | |
17 |
User | Count |
---|---|
259 | |
126 | |
85 | |
85 | |
68 |