如何从日期值中排除时间值?

huangapple go评论50阅读模式
英文:

How to exclude time value from a date value?

问题

我有一个与表单和画廊连接的Excel文件,还有一个添加按钮,如截图所示。

问题是它在Excel文件中包括时间。而且日期以(选择的日期-1)22:0000:00的形式减少了一天。

有人知道如何修复吗?

我尝试过这个:
时间仍然包括,如您所见...

英文:

I have an excel file connected to a form and a gallery in my power app. I also have an add button which adds values as seen in the screenshot.

如何从日期值中排除时间值?

The problem is that it includes the time in the excel file. And somehow the date gets reduced by one day and gets the (selected date-1) day and the 22:00 or 00:00.

如何从日期值中排除时间值?

Does anybody know how to fix that?

I tried this:
如何从日期值中排除时间值?
The time is still included as you can see...

答案1

得分: 1

因为您的图片显示的是德文文本,我推断问题的原因是您的应用程序和Excel数据源对时间的解释不同(您的中欧时间转换为了协调世界时)。

我建议您观看Shane的这段视频,他解释了PowerApps如何与Excel配合以及您可以采取哪些措施来应对此行为。

英文:

Since your picture shows German text, I assume the cause of the issue is that your app and your Excel datasource are interpreting time differently (your CET time was converted into UTC).

I recommend you watch this video from Shane where explains how PowerApps works with Excel and what you can do to counter this behaviour.

huangapple
  • 本文由 发表于 2023年4月17日 14:58:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76032429.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定