Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

yesterday in DATE('S') Format

Status
Not open for further replies.

BanD

Technical User
Nov 20, 2001
1
US
In standard Windows Rexx to get yesterday's date I can do:
today = date(u)
yesterday = today - 1

How do I then get yesterday in date('s') & date('e') format?

Don
 
Don't you mean Date('B') - base date? Try this;

Y_DateS = Date('S', yesterday, 'B')

Basically the first parameter is the desired output date format, the second is the input date, and the third is the input date format.
 


yesterday_s = (s, (date(b) - 1),b)

in most flavors of REXX.

bobh
 
woops ; that should have been

yesterday_s = Date(s, (date(b) - 1),b)

SBT

bobh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top