Subject: | |
From: | |
Reply To: | Vance, Jeff H (Cupertino) |
Date: | Thu, 14 Jul 2005 22:25:55 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Or:
setvar tmp hpyyyymmdd
setvar mmddyyyy str(tmp,5,2)+"/"+rht(tmp,2)+"/"+lft(tmp,4)
No need for zero padding.
The setvar tmp... is to deal with the real date changing in the middle
of string extractions. If this happens at least the mmddyyyy var will be
consistent.
HTH,
Jeff Vance, vCSY
> :calc rht("0!HPMONTH",2)+"/"+RHT("0!HPDATE",2)+"/"+RHT("0!HPYEAR",2)
> 07/14/05
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|