pvl_doy2date

Determines the Year, Month of year, and Day of month given the year and day of year

Contents

Syntax

[yr mo da] = pvl_doy2date(year, dayofyear)

Description

Gives the year, month of year, and day of month in the Gregorian calendar, when given the year and day of year.

Inputs

Outputs

Example 1

What is the date (m/d/yr) of the 60th day of 2011?

[yr mo da] = pvl_doy2date(2011, 60)
yr =

        2011


mo =

     3


da =

     1

Example 2

What is the date (m/d/yr) of the 60th day of 2012 (a leap year)?

[yr mo da] = pvl_doy2date(2012, 60)
yr =

        2012


mo =

     2


da =

    29

See Also

pvl_date2doy

Copyright 2014 Sandia National Laboratories