Re: Reginal Setting of short date




"duke" <nospama@xxxxxxxx> wrote in message
news:f6977347-9e89-467e-8585-af46f52eae76@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


It seems my last posting as a reply to Bob was sent into the "Great
Internet Vacuum" as I notice it is not showing up at this discussion
group.
It had some snippets from my program, with some explanation as to what
I was doing, unfortunately, I did not keep a copy for myself.

Try using an actual newsreader rather than something web-based (it appears
you posted via google). A newsreader program would (most likely)
automatically keep a copy of all messages that you send. I merely use
Outlook Express and it saves every email and newsgroup post to the Sent
Items folder.


I am quite experienced in VB6

I don't mean any of this as a personal attack, so don't take anything I say
that way....

You might know VB6 very well, but if you think it's OK to change a user's
regional settings to accomodate your app, you don't know the "moralities" of
good and bad programming, which has nothing to do with programming
language(s). It has to do with the programmer.

and judging from your comments there is
no "One Click" fix for my program.

If this program had been written properly to begin with, there'd be no need
for a "one click fix" now, would there? <g>

This is a very intensive date oriented program and I know all the
changes I would have to make which would be very time consuming.
Being able to Localize the regional setting to my app only would be
what I call the one click solution.

But NOT a good one. You're gonna have to (or should) just bite the bullet
and put the time into your program to do this right.


I really was looking for a Yes or No answer to my original
question.... Which Judging from your comments is NO !!!


You're not going to find anybody (at least anybody who writes programs as
more than just a hobby) that's going to think it's "OK" for an app to change
a user's regional settings (or any personal settings for that matter) for
any purpose. Your app simply needs to accomodate whatever settings the user
has configured. With dates, it's not that hard to do if you simply avoid
using strings (i.e. String data type, textboxes for date fields, text or
character data types for databases columns, etc.) for those dates. If you
use the Date data type and controls like the DTPicker and MonthView and date
data types in your database, the format of the date is irrelevant; hence, no
reason to mess around with a user's regional date format settings. Now, if
your database is not an RDMS (perhaps it's just a random access file), you
may format it a specific way *when you save it*, but the entry and display
of the date in your program should conform to the user's regional settings.

That's what everyone's trying to tell you. I'm not sure you're actually
listening though.

--
Mike
Microsoft MVP Visual Basic


.



Relevant Pages

  • Re: Date Format
    ... yyyy-mm-dd by itself is not a safe format in SQL Server; ... interpretation, depending on the regional settings of the machine, as well ... The conversion of a char data type to a datetime data type resulted in an ...
    (microsoft.public.sqlserver.programming)
  • Re: Regional settings cause runtime crash
    ... Thanks for the info and link, that's a very useful thread. ... > etc. using CInt or CDbl would crash my app. ... >>> format, i.e. date values in DateTime variables etc. ... To present data to the user, use the regional settings that are ...
    (microsoft.public.dotnet.languages.vb)
  • Re: getting errors from Europe
    ... Regional settings are likely the problem. ... Apart from making sure your app ... > The entry in the access database shows up in the DB itself ... > We put a subroutine in to fix the date format. ...
    (microsoft.public.vb.general.discussion)
  • Re: Time format - changes when on Internet
    ... The problem occurs because the regional settings are different on the host ... I don't know exactly what data type you're trying to format here, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: NumberFormat does not change the label format
    ... In fact nothing in the regional settings seems to have any affect on ... the format of the graph dates. ... With axis type set to chAxisGroupingTypeNone, ...
    (microsoft.public.office.developer.web.components)