Feeds:
Posts
Comments

Archive for the ‘MOSS’ Category


While working with date fields in List using C#, it needs a specific ISO Format, find hereby a function to convert existing date to ISO format
Supply this with CAML Query and update your list
 

public string getISOFormattedDateTime()

{

DateTime CurrentDateTime = new DateTime();

CurrentDateTime = System.

DateTime.Now;

//Generate ISO 8601 date/time formatted string

string FormattedDate = "";

FormattedDate += CurrentDateTime.Year +

"-";

FormattedDate += CurrentDateTime.Month +

"-";

FormattedDate += CurrentDateTime.Day;

FormattedDate +=

"T" + CurrentDateTime.Hour + ":";

FormattedDate += CurrentDateTime.Minute +

":";

FormattedDate += CurrentDateTime.Second +

"-06:00"; //time zone offset (eg "-06:00" – CST)

return FormattedDate;

}

 
 

Read Full Post »

« Newer Posts