HP3000-L Archives

May 2002, 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:
Neil Harvey <[log in to unmask]>
Reply To:
Neil Harvey <[log in to unmask]>
Date:
Tue, 21 May 2002 17:05:00 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Bob offered (and I thank him for this):-

>set yyy=%DATE%
>or to get the month value only=
>set yyy=%DATE:~4,2%

but to get the month, you need :-
set yyy=%DATE:~5,2%

so, 
set xDATE=%DATE%
set xccyy=%DATE:~0,4%
set xCC=%DATE:~0,2%
set xYY=%DATE:~2,2%
set xMM=%DATE:~5,2%
set xDD=%DATE:~8,2%


Neil

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

ATOM RSS1 RSS2