【问题标题】:PowerApps Date FormattingPowerApps 日期格式
【发布时间】:2020-12-09 17:06:03
【问题描述】:

我正在开发一个 PowerApp,日期格式几乎适用于我的所有字段,但 Sharepoint 中有一个是计算字段。新电子邮件的计算日期是最后一封电子邮件后 28 天。我以前可以正常格式化所有日期,但这一个不起作用。有谁知道为什么? View Image

【问题讨论】:

  • 能不能不用Text( DateTimeValue( ThisItem.NextEmail ), "mm/dd/yyyy" )Reference docs

标签: powerapps


【解决方案1】:

有趣的。看起来您在 PowerApps 中做的一切都是正确的。可能是计算列的错误。

作为一种潜在的解决方法,请尝试在 Sharepoint 列本身中格式化日期。

看起来toLocaleDateString() 可以解决问题:

toLocaleDateString(): returns a language sensitiverepresentation of just the date portion of a date

- "txtContent":"=toLocaleDateString(@now)" resultsvary based on user's locale, but en-us looks like"2/5/2019"

【讨论】: