Operating System - OpenVMS
1748058 Members
5351 Online
108758 Solutions
New Discussion юеВ

Re: 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 5
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