在计算列中获取 CreatedBy 日期的年份

发布于 2024-10-02 21:39:41 字数 165 浏览 0 评论 0原文

我正在尝试在 SharePoint 2007 中创建一个计算列。我希望它返回 CreatedBy 列日期的年份,并将日期设置为 1,月份设置为 1 月,公式返回的数据类型为日期类型。

我有什么想法可以做到这一点吗? =YEAR([Created]) 似乎没有按预期工作。

谢谢 导航

I am trying to create a calculated column in SharePoint 2007. I want it to return the year of the CreatedBy column date and set the day to be 1 and the month to be January the data type returned by the formula is of type Date.

Any ideas how I can do this?
=YEAR([Created]) does not seem to work as expected.

Thanks
Nav

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

明明#如月 2024-10-09 21:39:41

=DATE(YEAR([创建]),1,1)

alt text

=DATE(YEAR([Created]),1,1)

alt text

七婞 2024-10-09 21:39:41

您可以简单地使用 =CONCATENATE(YEAR([Created])),它以纯文本形式表示年份

You can simply use =CONCATENATE(YEAR([Created])), it represents the year as plain text

寒尘 2024-10-09 21:39:41

另一个解决方案n = TEXT(已创建,“yyyy”)

Another solutionn = TEXT (created,"yyyy')

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文