I have a list of things that doesn't *need* a title. However, because sharepoint uses Title for links, RSS etc I tried generating a title in an event handler. This would work great if I wasn't basing it on a date field:
public override void ItemAdding(SPItemEventProperties properties)
DateTime dt = Convert.ToDateTime(properties.AfterProperties["TestDate"]);
properties.AfterProperties["Title"] = dt.ToShortDateString();
In testing, this sets the title to "8/9/2010" when I selected 8/10/2010 in the date picker. I figure this is because of the regional settings of my test user. I can probably correct the title value for 'test user' but that won't fix
'test user in mongolia' who would still see two different values.
So What I would like is to have the Title always display the value MyDate in the uesr's locale. So the field needs to be dynamic not only at edit/update time, but at display time.
Does anybody know if this can be accomplished, and more specifically how?
View Complete Post