GetUserDefaultLCID function: (v=vs.85).
GetSystemDefaultUILanguage function: (v=vs.85).aspx It's order date, or hire date, or month-end date, etc. In my experience, the date a program is manipulating is almost never today. = new CultureInfo((int)GetUserDefaultLCID()) Ĭonsole.WriteLine() įor more about the specifications, see the references: Get the day of the week in CL On Thursday, August 20, 1998, 06:58 AM, Michael Daly wrote: I see nothing in Silvio's original post that indicates he only wants the day of the week for today. You can Write Line their name as: = new CultureInfo((int)GetSystemDefaultUILanguage()) Ĭonsole.WriteLine() Static extern uint GetSystemDefaultUILanguage() To get the reginal settings which set it in the Control Panel->Region and Language, you can call the following Win32 function: That exists in the regional settings in the system to the user from my form.
After I programmatically changed the culture for my application how can show the date format .CurrentUICulture = new ('es-mx') Įven I change the culture info from here, system's default settings is the settings that exists in the regional and languate option in the control panel. .CurrentUICulture = new ('en-us') Ĭonsole.WriteLine(() + ' ' + ()) Maybe it is what you want: static void Main() It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company.