Re: vb6 question
- From: dpb <none@xxxxxxx>
- Date: Wed, 02 Apr 2008 15:06:48 -0500
christery@xxxxxxxxx wrote:
On 2 Apr, 18:38, dpb <n...@xxxxxxx> wrote:....Rick wrote:Is there any way to make the following date functions:...
Format
CDATE
DateAdd
DatePart
Month
Day
...etc...
system date independent?
In short, no, I don't believe there's any possibility to change the VB
runtime behavior to make it insensitive to system locale. Your best bet
is to replace the intrinsics w/ your own library functions which are
"app-aware" of local locale.
--
Welll, Excel for example is used to this... why not do like excel?
seconds(?) since 1900-01-01 or something, we use 1980-01-01 for our
origin of time in a DB to get rid of that summertime problem, (got
otherones instead but...)
Decent answer to the wrong question I think...that doesn't handle (at least that I see) the question of interpretation in the VB functions of a text-formatted date in mm/dd/yy order vis a vis dd/mm/yy order--VB will still interpret it on the basis of the global locale setting.
What Rick wants/needs is a way to control that behavior for a single app independent of the system setting and there's no facility in VB to handle it.
Which, btw, Rick, I agree you need to attach a data item to your app in some form that is the indicator flag. Not knowing more, I hesitate to recommend a particular implementation (and you're far more clever/expert in the environment than I, anyway :) )...
--
.
- Follow-Ups:
- Re: vb6 question
- From: Rick
- Re: vb6 question
- References:
- vb6 question
- From: Rick
- Re: vb6 question
- From: dpb
- Re: vb6 question
- From: christery
- vb6 question
- Prev by Date: Re: Microsoft and Trust Take 2
- Next by Date: Re: vb6 question
- Previous by thread: Re: vb6 question
- Next by thread: Re: vb6 question
- Index(es):