HP3000-L Archives

July 2005, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Vance, Jeff H (Cupertino)" <[log in to unmask]>
Reply To:
Vance, Jeff H (Cupertino)
Date:
Thu, 14 Jul 2005 22:25:55 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
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 *

ATOM RSS1 RSS2