Can anybody assist me on the code to set the System's ShortDate format to
yyyy/MM/dd at runtime? 7 1389
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
--
Newbie Coder
(It's just a name)
"Connull" <Co*****@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.com...
Can anybody assist me on the code to set the System's ShortDate format to
yyyy/MM/dd at runtime?
Windows!
"Newbie Coder" wrote:
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
--
Newbie Coder
(It's just a name)
"Connull" <Co*****@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.com...
Can anybody assist me on the code to set the System's ShortDate format to
yyyy/MM/dd at runtime?
On Jun 15, 7:26 am, Connull <Conn...@discussions.microsoft.comwrote:
Windows!
"Newbie Coder" wrote:
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
--
Newbie Coder
(It's just a name)
"Connull" <Conn...@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.com...
Can anybody assist me on the code to set the System's ShortDate format to
yyyy/MM/dd at runtime?
I'm thinking you can use the SetLocaleInfo api for this. This looks
like a very touchy API so do so at your own risk (i.e. don't blame me
if you screw something up): http://msdn2.microsoft.com/en-us/library/ms776312.aspx
By the way, you do know that changing a user's settings is a great way
to tick them off right?
Thanks,
Seth Rowe
Connull, http://msdn2.microsoft.com/en-us/library/ms724942.aspx
When I get the time I will try code it for you
--
Newbie Coder
(It's just a name)
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
On Jun 15, 7:26 am, Connull <Conn...@discussions.microsoft.comwrote:
Windows!
"Newbie Coder" wrote:
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
--
Newbie Coder
(It's just a name)
"Connull" <Conn...@discussions.microsoft.comwrote in message
>news:3F**********************************@microso ft.com...
Can anybody assist me on the code to set the System's ShortDate format
to
yyyy/MM/dd at runtime?
I'm thinking you can use the SetLocaleInfo api for this. This looks
like a very touchy API so do so at your own risk (i.e. don't blame me
if you screw something up):
http://msdn2.microsoft.com/en-us/library/ms776312.aspx
By the way, you do know that changing a user's settings is a great way
to tick them off right?
Thanks,
Seth Rowe
Connull,
The ShortDate is an enum from ToString in the overloaded DateTime structure.
What is your goal?.
Cor
"Connull" <Co*****@discussions.microsoft.comschreef in bericht
news:63**********************************@microsof t.com...
Windows!
"Newbie Coder" wrote:
>Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate... MessageBox.Show(strDate, Me.Text)
-- Newbie Coder (It's just a name)
"Connull" <Co*****@discussions.microsoft.comwrote in message news:3F**********************************@microso ft.com...
Can anybody assist me on the code to set the System's ShortDate format
to
yyyy/MM/dd at runtime?
Other programs running on my Clients Workstations keep changing the format
and I am then having problems with the Date format in Access and I also use
string values from the DateTime hence the reason I want my Windows App to
correct the Format of the applicable Workstation.
"Cor Ligthert [MVP]" wrote:
Connull,
The ShortDate is an enum from ToString in the overloaded DateTime structure.
What is your goal?.
Cor
"Connull" <Co*****@discussions.microsoft.comschreef in bericht
news:63**********************************@microsof t.com...
Windows!
"Newbie Coder" wrote:
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
--
Newbie Coder
(It's just a name)
"Connull" <Co*****@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.com...
Can anybody assist me on the code to set the System's ShortDate format
to
yyyy/MM/dd at runtime?
One word of advice: DON'T!!!!!!!!!!
If you do you are likely to end up on the losing end of a law suit.
If you want your application to output the date as yyyy/MM/dd then make sure
that you explicitly format the output in your code.
"Connull" <Co*****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
Other programs running on my Clients Workstations keep changing the format
and I am then having problems with the Date format in Access and I also
use
string values from the DateTime hence the reason I want my Windows App to
correct the Format of the applicable Workstation.
"Cor Ligthert [MVP]" wrote:
>Connull,
The ShortDate is an enum from ToString in the overloaded DateTime structure.
What is your goal?.
Cor
"Connull" <Co*****@discussions.microsoft.comschreef in bericht news:63**********************************@microso ft.com...
Windows!
"Newbie Coder" wrote:
Connull,
Do you mean your application or Windows?
Dim strDate As String = DateTime.Today.ToShortDate... MessageBox.Show(strDate, Me.Text)
-- Newbie Coder (It's just a name)
"Connull" <Co*****@discussions.microsoft.comwrote in message news:3F**********************************@microso ft.com...
Can anybody assist me on the code to set the System's ShortDate
format
to
yyyy/MM/dd at runtime?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: CSDunn |
last post by:
Hello,
I currently have an Access 2003 ADP Report/Subreport set up in which I have
12 subreports in a single main report that are located in a group header
called 'PermnumHeader' (Permnum would be...
|
by: MLH |
last post by:
I have created an A97 runtime distribution for the first time in my
life this morning. I had precious little time to do it and was unable
to create the distributable installation fileset with the...
|
by: Jim Florence |
last post by:
Hello,
I've just started in ASP and I'm having a few teething problems. Initially I
tried to write out dates from the database using
<asp:Label runat="server" ID="Label6" Text='<%#...
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting"...
|
by: forest demon |
last post by:
for example, let's say I do something like,
System.Diagnostics.Process.Start("notepad.exe","sample.txt");
if the user does a SaveAs (in notepad), how can i capture the path that
the user...
|
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= |
last post by:
Hi,
I am wondering why the .NET Framework is quite different from Win32 API when
it comes to displaying system modal message boxes.
Consider the four following types of system modal message...
|
by: VietPP |
last post by:
Hi all,
I've asked too much question in this day, hehe.
I'm trying to export my table data in OracleDB to excel. The problem is my charset in database is US7ACSII (using Vietnamese font), when...
|
by: billa856 |
last post by:
Hi,
I am trying to insert Null value in column(ShipDate) in my table.That column(ShipDate)'s type id date/time and format is short date.
I am using "" to insert Null in that column(ShipDate)...
|
by: =?Utf-8?B?am1hZ2FyYW0=?= |
last post by:
I have a Windows service written in C# that is configured to automatically
start. Sometimes - maybe 20% of the time - the service fails to start due to
an exception in WMI code. I haven't made my...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
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...
| |