Re: vb6 question
- From: christery@xxxxxxxxx
- Date: Wed, 2 Apr 2008 11:34:30 -0700 (PDT)
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...)
This will be something like this (from XL)
1900-01-01 1,00000000000
2001-01-01 36892,00000000000
2001-01-01 21:53 36892,91180555560
Then just figure out (again with the help of office or another
function that time)
Just my 2 cents.... //CY
.
- Follow-Ups:
- Re: vb6 question
- From: dpb
- Re: vb6 question
- References:
- vb6 question
- From: Rick
- Re: vb6 question
- From: dpb
- vb6 question
- Prev by Date: Re: OT: x86 Assembly Language Question
- Next by Date: Re: No help available in VB6.
- Previous by thread: Re: vb6 question
- Next by thread: Re: vb6 question
- Index(es):