HI experts...
I need to change my system date format to "united kingdom" through my program.how to do that? please help me..I am using Access-2003.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankur GuptaPosted May 26, 2010, 8:31 AM
Imports System.Threading.Thread
...
Dim newCulture As CultureInfo = New CultureInfo(CultureInfo.CurrentCulture.Name)
newCulture.DateTimeFormat.ShortDatePattern = "dd-MMM-yy"
CurrentThread.CurrentCulture = newCulture
MsgBox(CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern.ToString)
paul danielPosted Mar 8, 2010, 7:23 AM
C#
// we need to have imported System.Globalization
// using System.Globalization;
// fetch the en-GB culture
CultureInfo ukCulture = new CultureInfo("en-GB");
// pass the DateTimeFormat information to DateTime.Parse
DateTime myDateTime = DateTime.Parse("18/09/2004",ukCulture.DateTimeFormat);
VB.NET
' we need to have imported System.Globalization
' Imports System.Globalization
' fetch the en-GB culture
Dim ukCulture As CultureInfo = New CultureInfo("en-GB")
' pass the DateTimeFormat information to DateTime.Parse
Dim myDateTime As DateTime = DateTime.Parse("18/09/2004", ukCulture.DateTimeFormat)
Lalit MPosted Mar 8, 2010, 2:42 AM
for reference
Hirendra SisodiyaPosted Mar 8, 2010, 2:25 AM
You can find dateformat according to united kingdom with the help of System.Globalization.CultureInfo class
System.Globalization.Cultu
string DtFormat = culture.DateTimeFormat.FullDateTimePattern.ToString();
after that you can edit some registry value of following:
HKEY_Users --> S-1-5-21-1390067357-1770027372-682003330-1003 --> Control Panel --> International
Thank you
Lalit MPosted Mar 8, 2010, 2:20 AM
http://www.longhorncorner.com/Forums/ShowMessages.aspx?ThreadID=73042
more details you will get here