English 中文(简体)
A. 如何编制共同点清单
原标题:How to format a SharePoint ListItemProperty Date Field

我收到一份“共享点(2010年)”清单,其中列有一个日期。

现在,在我的习俗中,我可以走下去,补充实地。

<SharePoint:ListItemProperty Property="MyDateField" runat="server" id="ListItemProperty1" />

产出如下:

21.02.2011 15:44

我怎么能够把“分享点”说到如何安排日期。

21.02.2011

迄今的唯一途径似乎是根据这一日期实地建立一个新的计算栏目,并在实地定义范围内进行格式编排,但这种方式似乎是错误的。

任何帮助都会受到高度赞赏。

最佳回答

When you create the "Date" column in the list, there is option to select: 1)Date only ; 2)Date and time. If you select the first option, then in the display form, only the date is shown

问题回答

I had a similar task to perform recently, but the client wanted the time stored as well as date, just not to display the date.

我走到这里的路是建立一个以所需格式显示日期的计算栏,然后我才指出我的外地控制显示该栏。

该计算栏有以下公式:

=TEXT([News Article Date],"dd MMMM yyyy")

FYI:这是一页的布局。

方案(能力):

$web = get-spweb http://thingy/
$list = $web.lists["List Name"]
$datefield = $list.fields["Date Field"]
$datefield.displayformat = [microsoft.sharepoint.spdatetimefieldformattype]::dateonly
$datefield.update()




相关问题
SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

UI automated testing within SharePoint

I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...

Enable authorization on sitemap provider

I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...

热门标签