Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

SharePoint: Assigning values to DateTime fields

SharePoint list items have a tricky way how to assign values to DateTime fields in your code. It is possible to assign value of DateTime type to this field but it also possible to assign a string. This string is a little bit mysterious. You may get errors with one dates but some dates will work perfect. So what's the trick?

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Comments

Gary Chen said:

How can assigning values to DateTime field and cannot select or enter a date before Today?

If Today= 19 Jan, 2009 (2009/1/19)

  user cannot select or enter 1~18 Jan, 2009 , only can enter grant than 19 Jan, 2009.

# January 19, 2009 10:06 AM