J
JamesBV
My PC's Region setting is set to "English (Canada)"... cause I am in Canada
(eh?) I'm using VB.net, standard edition (v1?)
So I wrote my application based on this Region. I've both Short and Long
dates being displayed (including a DateTimePicker).
BUT... at work, there are some machines which the Region is the ol' default of
"English (United States)".
Canadian:
Short = dd/MM/yy
Long = MMMM d, yyyy
USA:
Short = M/d/yyy
Long = dddd, MMMM dd, yyyy
What my issue is is that my Date displays (both for long and short) are either
OK or Screwed up depending upon the Region display. This because my labels,
textboxes, etc. have 'fixed' widths.
Bah! Changing the PC's Regions is NOT an option (I won't go into that).
So how can I have my app display what I want?
I know I can 'build' the date string. Such for a Label, I can have:
myMonth & myDay & myYear... etc.
But the DateTimePicker is got me stumped.
Prefferably, there must be an easier way to do this so that 'globally' my app
works for English (Canadian) and not screw up the Users PC Region setting.
Thanks
James
(eh?) I'm using VB.net, standard edition (v1?)
So I wrote my application based on this Region. I've both Short and Long
dates being displayed (including a DateTimePicker).
BUT... at work, there are some machines which the Region is the ol' default of
"English (United States)".
Canadian:
Short = dd/MM/yy
Long = MMMM d, yyyy
USA:
Short = M/d/yyy
Long = dddd, MMMM dd, yyyy
What my issue is is that my Date displays (both for long and short) are either
OK or Screwed up depending upon the Region display. This because my labels,
textboxes, etc. have 'fixed' widths.
Bah! Changing the PC's Regions is NOT an option (I won't go into that).
So how can I have my app display what I want?
I know I can 'build' the date string. Such for a Label, I can have:
myMonth & myDay & myYear... etc.
But the DateTimePicker is got me stumped.
Prefferably, there must be an easier way to do this so that 'globally' my app
works for English (Canadian) and not screw up the Users PC Region setting.
Thanks
James