Help, PLEASE! Y2K print headache 
Author Message
 Help, PLEASE! Y2K print headache

Hi Folks,

I really hope someopne can tell mt what I did wrong, and what my
correction will be ...

myprog.prg

        doit()
        QUIT

PROCEDURE DOIT
        SET CENTURY on
        SET EPOCH TO 1984
        ...
        ...
        ...
        DdT2                    :=ctod("01/01/00")
        DdT3                    :=CTOD("01/31/00")
        ...
        ...
        ...










RETURN(nil)

Result:

        Start Date:     January 1, 1900
         End Date: January 31, 1900

How do I print the year properly????

Regards,

Paul Bruneau



Tue, 02 Jul 2002 03:00:00 GMT  
 Help, PLEASE! Y2K print headache

Quote:

> [SNIP code]

> Result:

>    Start Date:     January 1, 1900
>     End Date: January 31, 1900

> How do I print the year properly????

I suspect there is something else in the code you're not showing us. Taking
the following as runnable code:

,----[ foo.prg ]
| SET CENTURY on
| SET EPOCH TO 1984
|
| DdT2      :=ctod("01/01/00")
| DdT3      :=CTOD("01/31/00")
|










`----

the output displays the year as 2000.

Can you post a stand-alone snippet of code that displays your problem?

--
Take a look in Hagbard's World: | boxquote.el - "Boxed" text quoting.
http://www.acemake.com/hagbard/ |  sawmill.el - Sawmill mode.
http://www.hagbard.demon.co.uk/ |  uptimes.el - Record emacs uptimes.
emacs software, including.......| quickurl.el - Recall lists of URLs.



Tue, 02 Jul 2002 03:00:00 GMT  
 Help, PLEASE! Y2K print headache
If you turn century on, you must use "ctod('mm/dd/yyyy')"

Quote:
> PROCEDURE DOIT
> SET CENTURY on
> SET EPOCH TO 1984
> ...
> ...
> ...
> DdT2 :=ctod("01/01/00")
> DdT3 :=CTOD("01/31/00")

Luiz - Sao Paulo - Brazil



Fri, 05 Jul 2002 03:00:00 GMT  
 Help, PLEASE! Y2K print headache

Quote:
> If you turn century on, you must use "ctod('mm/dd/yyyy')"

> > PROCEDURE DOIT
> > SET CENTURY on
> > SET EPOCH TO 1984
> > ...
> > ...
> > ...
> > DdT2 :=ctod("01/01/00")
> > DdT3 :=CTOD("01/31/00")

> Luiz - Sao Paulo - Brazil


This code:
clea scre
SET CENTURY on
SET EPOCH TO 1984


?

Produces this:
Start Date: Saturday January  1, 2000

Looks OK to me.



Fri, 05 Jul 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Please Help Another Y2K prob with CPD 2.1

2. help please, Y2K fix for Clipper S87

3. Y2K Contractors-Help please.

4. Printing large text fields in cw1.5 help help please

5. please, please, please, please, help

6. will someone please, please, please, please HELP me?!!

7. HELP: serial port setting headache!!!!!

8. Random printing from a file , help please

9. Help please qbe print problem

10. Please Help! Printing Invoice

11. Help please: Print a report HEADER even when there are no detail records

12. CLARION GURUS: Please help! - Problems printing to HP5

 

 
Powered by phpBB® Forum Software