如何远程(通过 Web 服务)确定 SharePoint 2003 网站的日期格式,以便在 Versions.asmx 返回的 XML 中使用?

发布于 2024-07-05 23:32:53 字数 397 浏览 8 评论 0原文

SharePoint 2003 中对 Versions.asmx Web 服务的 GetVersions() 调用返回本地化日期格式,但无法确定该格式是什么。 这是日期格式的站点区域设置,但我找不到一种方法可以在 SharePoint 2003 中实现这一点。在本地,看起来可以使用 SPRegionalSettings (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spregionalsettings.aspx)但是这个的网络服务版本怎么样呢?

The GetVersions() call to the Versions.asmx web service in SharePoint 2003 returns a localised date format, with no way of determining what the format is. It's the site regional setting of date format, but I can't find a way to get even that out of SharePoint 2003. Locally, it looks like SPRegionalSettings can be used (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spregionalsettings.aspx) but what about a web service version of this?

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

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

发布评论

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

评论(2

堇年纸鸢 2024-07-12 23:32:57

不幸的是,此调用不支持要求 UTC 值的参数。 我只需查找大于 12 的月份,并将其用作切换日期格式的提示。 这会弄乱一些日期,但我找不到解决办法。 如果有人感兴趣,代码位于 http://sourceforge.net/projects/splistcp/

Unfortunately, the parameter that asks for the values in UTC is not supported for this call. I've just had to look for a month greater than 12 and use that as the hint to switch date formats. It'll mess up some dates, but I can't see a way around that. The code is at http://sourceforge.net/projects/splistcp/ if anyone is interested.

攒一口袋星星 2024-07-12 23:32:56

遗憾的是,它不可用。 但是,您可以指定一个查询选项来指定您希望以 UTC 格式返回值:

http://www.sharepointblogs.com/pm4everyone/archive/2006/10/03/sharepoint-2003-querying-with-gmt-datetime.aspx

Sadly, it isn't available. However, you can specify a query option to specify that you want the values returned in UTC:

http://www.sharepointblogs.com/pm4everyone/archive/2006/10/03/sharepoint-2003-querying-with-gmt-datetime.aspx

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