HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate date before yesterday

 
SOLVED
Go to solution
Sjors Takes
Advisor

Calculate date before yesterday

Hi all!!

Is there a simple way to calculate the date/day before yesterday with DCL? Or is there a lexical function for this purpose? Thanks in advance.

Sjors
5 REPLIES
Volker Halle
Honored Contributor
Solution

Re: Calculate date before yesterday

Sjors,

$ write sys$output f$cvtime("0-2-0","ABSOLUTE","DATE")
19-JUL-2006

Volker.
Robert Gezelter
Honored Contributor

Re: Calculate date before yesterday

Sjors,

I concur with Volker. If you are computing two days before a date other than the current one, watch the syntax of the date string into F$CVTIME, it must be precisely correct.

- Bob Gezelter, http://www.rlgsc.com
Sjors Takes
Advisor

Re: Calculate date before yesterday

OK, thanks!!

Sjors
Sjors Takes
Advisor

Re: Calculate date before yesterday

problem solved
Wim Van den Wyngaert
Honored Contributor

Re: Calculate date before yesterday

I always write the string as "-2-".

Wim
Wim