Re: date - date gives surprise result



On Wed, 07 Dec 2005 23:44:06 +0000, Stephen Quinn wrote:

> Alan
>
> Are they dates or strings??
> 01/11/2005 is a string representation not numeric
>
> Maybe you need
> CTOD( atfr[28] ) - CTOD( dfirstday )
>
> or maybe the typo you show here (firsday)
>
>> dfirstday holds 01/11/2005
>> ? atfr[28] - dfirsday should produce 5 but returns -36520
>
> HTH
> Steve

Funny. I woke up after a couple of hours knowing it was a century
related problem but I haven't pinned down where it went haywire.
I set the default century on startup which is why I ignored that
to start with. Thanks everyone.

Alan


.



Relevant Pages

  • Re: Internet explorer running invisibly on boot up
    ... > Master Ice wrote: ... >> Hi again Alan. ... >>> Kill the process and get rid of the startup item. ... None of the Epson printer interfaces are ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Start>>msconfig>>Startup
    ... Alan, they refer to HP items that aren't there any ... such as in Program Files. ... items from the Startup list is my question. ... Alan Edwards, MS MVP Windows - Internet Explorer ...
    (microsoft.public.windowsxp.basics)
  • Re: Internet explorer running invisibly on boot up
    ... >> Kill the process and get rid of the startup item. ... >> Alan Edwards, MS MVP Windows - Internet Explorer ... >>> Camio Viewer camio viewer.lnk .DEFAULT Startup ... >>> Users Common Startup ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Start>>msconfig>>Startup
    ... What Alan meant was the Location column indicates where the item is loading from (Start Menu, Startup folder or the Registry). ... This gives a little more info about where things are loading from, and the Help includes some basic information about how to remove items. ... Alan Edwards, MS MVP Windows - Internet Explorer ...
    (microsoft.public.windowsxp.basics)
  • Re: How can i open and close form rapidly without any showing on the s
    ... If you are really cannot move the code, make the Form_Load handler ... Alan. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)