Subject: | |
From: | |
Reply To: | |
Date: | Mon, 11 Sep 2000 17:11:09 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> -----Original Message-----
> From: Ron Burnett [mailto:[log in to unmask]]
> Sent: Monday, September 11, 2000 3:22 PM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] Quiz question
>
>
> At 16:00 11/09/2000 -0400, Jim Mc Coy wrote:
> >Does anyone know how to output this field to a subfile
> without slashes in
> the date? (YYMMDD instead of YY/MM/DD)
> >
> > DEF NEW-BODATE DATE FORMAT YYMMDD = &
> > DATE(DAYS(BODATE) + 6) IF BODATE <> 0 ELSE 0
>
> A relatively simple question that even I can answer at this
> hour of the
> morning!
>
> Try
>
> define new-bodatex char * 6 = ascii(new-bodate)
>
> and then output the new-bodatex variable to your subfile.
>
Just a warning....
When using a define like this:
define new-bodatex char * 6 = ascii(new-bodate)
to convert a date to a string ALWAYS specify the number of positions for the
string as in :
define new-bodatex char * 6 = ascii(new-bodate,6)
or your date, which is stored in YYYYMMDD format, 00000101 will come out as
"101" because ascii converts all leading zeroes to spaces and left
justifies.
|
|
|