Operating System - OpenVMS
1752808 Members
6550 Online
108789 Solutions
New Discussion юеВ

convert day of year to date

 
SOLVED
Go to solution
JKrucus
Frequent Advisor

convert day of year to date

I can get the day of year from f$cvtime, but I need the reverse. Is there a way to input the 82 and get the 23-mar-2006 date returned?

CAT>> WRITE SYS$OUTPUT F$CVTIME(,,"DAYOFYEAR")
82
CAT>>sho time
23-MAR-2006 11:39:56
3 REPLIES 3
Hein van den Heuvel
Honored Contributor
Solution

Re: convert day of year to date

$ write sys$output f$cvtime("1-jan +82-")

Hein.

Hein van den Heuvel
Honored Contributor

Re: convert day of year to date

ooops... off by 1

but you get the drift....

The - behind the 82 is critical to change is from 'hours' to 'days'


Hein
JKrucus
Frequent Advisor

Re: convert day of year to date

Excellent