473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

DateTimeControl Sharepoint Dev

115 100+
I am currently working on a piece of software that works!!!!!!

However, the DateTimeControl is using the incorrect locale and/or regional settings.

It is the only date on my sharepoint site that is giving me the incorrect format and it's starting to bug me!

I have changed the settings on the server to the correct locale/regional settings and i have checked my browser has the same language settings.

I have put this as a .net issue as it's only that control thats is incorrect!!!

Any answers are hugely appreciated.

Cheers
Truez
Jul 27 '10 #1

✓ answered by truezplaya

Hi all i've managed to crack it!!.

The control didn't seem to be inheriting the default locale id.

You can set this within your control properties.

Expand|Select|Wrap|Line Numbers
  1. DateTimeControl objDTControl = new DateTimeControl();
  2. objDTControl.LocaleID = SPWeb.Locale.LCID;
Cheers truez

1 2924
truezplaya
115 100+
Hi all i've managed to crack it!!.

The control didn't seem to be inheriting the default locale id.

You can set this within your control properties.

Expand|Select|Wrap|Line Numbers
  1. DateTimeControl objDTControl = new DateTimeControl();
  2. objDTControl.LocaleID = SPWeb.Locale.LCID;
Cheers truez
Jul 28 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or...
6
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default...
0
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from...
15
by: (PeteCresswell) | last post by:
Got a sample of MS's "Advisor Guide To Microsoft Access" in the mail today - accompanied by a sample "Advisor Guide To Microsoft SharePoint". I skimmed both, but the SharePoint explanation is too...
1
by: getobject | last post by:
I am building an ASP.Net site and wish to use a SharePoint to hold the information. I am trying to add an entry to a list using Sharepoint webservices and keep getting a SOAP exception. I have know...
8
by: GaryDean | last post by:
I was advised by a Microsoft speaker at a local .Net conference that "SharePoint" had a lot to offer for asp.net developers. I've spent a few hours hunting down links on Sharepoint Services in...
20
by: Neil | last post by:
What is Sharepoint, and should I care?
2
by: =?Utf-8?B?S2plbGw=?= | last post by:
Is this the tight place for Sharepoint issues? for example SharePoint Services 3.0 Kjell
0
by: ivandatasync | last post by:
I have read about both Plone and Alfresco being considered as alternatives to Sharepoint and unfortunately they may not be enough if you require everything Sharepoint has too offer. Plone and...
0
by: munkee | last post by:
After finding that there is a possibility that my access database may need to be used across a wide area network I am looking at what my options are. The business uses sharepoint and I have seen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.