Hi,
I am using the following formula to Patch the date to an Excel file (column name DecimalDay):
DecimalDay: DateDiff(
DateTimeValue("1/1/1900")-2,
Today(),
Days
) + (DateDiff(
Today(),
Now(),
Minutes
) / 1440),
I am doing this because of the countless problems I have had with PowerApp dates transferring to Excel. They seem to appear differently in the background Excel file depending on what the app is running on (PC, phone, tablet etc.). There are also issues with time zones meaning that the date as uploaded from PowerApps is one day out.
However, what I now want to do is replace the Today() and Now() part of the formula above with the selected date from a date picker. This is so that people have the option of putting in data to the Excel file from a previous date that they choose.
How do I replace the Today() and Now() bit of the formula with the selected date? I have tried DatePicker.SelectedDate but that doesn't work.
Thanks,
Izzy.

Report
All responses (
Answers (