Setting the System's ShortDate Format in RunTime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anybody assist me on the code to set the System's ShortDate format to
yyyy/MM/dd at runtime?
 
Connull,

Do you mean your application or Windows?

Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
 
Windows!

Newbie Coder said:
Connull,

Do you mean your application or Windows?

Dim strDate As String = DateTime.Today.ToShortDate...
MessageBox.Show(strDate, Me.Text)
 
Connull,

The ShortDate is an enum from ToString in the overloaded DateTime structure.

What is your goal?.

Cor
 
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.
 
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.
 
Back
Top