HP3000-L Archives

June 2016, Week 5

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:
Reggie Monroe <[log in to unmask]>
Reply To:
Reggie Monroe <[log in to unmask]>
Date:
Wed, 29 Jun 2016 09:47:00 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
Great. Thank you Michael.

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Michael
Sent: Wednesday, June 29, 2016 9:28 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] Date format question

Not sure if this is the easiest, but it works for me:

First echo:
echo 
![str("!hpyyyymmdd",5,2)]/![str("!hpyyyymmdd",7,2)]/![str("!hpyyyymmdd",3,2)]

Then setvar:
setvar mydate 
'![str("!hpyyyymmdd",5,2)]/![str("!hpyyyymmdd",7,2)]/![str("!hpyyyymmdd",3,2)]'

Note in the  setvar command, the usage of single-quote and double-quote.

--
Michael Anderson.



On 06/29/2016 11:01 AM, Reggie Monroe wrote:
> What would be the easiest way to get a variable date in the following below format on a HP3000 OS version 7.0 and 7.5?
>
> 06/29/16
>
> ________________________________
> This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2