29 May, 2009 · less than a minute to read
Getting SPControls.DateTimeControl to display the local date format
One of the minor problems with SLK was that on the Assignment Properties page the Start and Due dates were always being shown in US format, no matter what the regional setting were. There was a really simple fix, you just need to set the LocaleId of the DateTimeControl and then it will display the date in the regional format of the site.
spDateTimeStart.LocaleId = SPWeb.Locale.LCID;
spDateTimeDue.LocaleId = SPWeb.Locale.LCID;
A version with this fix in is now available on the 1.3.2 build page.
Managing Director / Founder
Richard started SalamanderSoft in 2007 after a successful career as a software developer. Wanting to start his own company and with experience in integrating school systems he set out to build the best integration system for schools and to exceed customer expectations. He starting out on his own, doing all the coding, support and sales until finally the growing number of customers meant he needed to start growing the team. He is still heavily involved in coding the core Integration Suite product in addition to running the company and being the first point of contact for prospective customers.